10template <
class DataPo
int,
class _NFilter,
typename T>
11void MeanPosition<DataPoint, _NFilter, T>::init()
14 m_sumP = VectorType::Zero();
17template <
class DataPo
int,
class _NFilter,
typename T>
18void MeanPosition<DataPoint, _NFilter, T>::addLocalNeighbor(Scalar w,
const VectorType& localQ,
19 const DataPoint& attributes)
21 Base::addLocalNeighbor(w, localQ, attributes);
25template <
class DataPo
int,
class _NFilter,
typename T>
26 requires MEAN_NORMAL_REQUIREMENTS
30 m_sumN = VectorType::Zero();
33template <
class DataPo
int,
class _NFilter,
typename T>
34 requires MEAN_NORMAL_REQUIREMENTS
36 const DataPoint& attributes)
38 Base::addLocalNeighbor(w, localQ, attributes);
39 m_sumN += w * attributes.normal();
42template <
class DataPo
int,
class _NFilter,
int DiffType,
typename T>
43 requires MEAN_POSITION_DER_REQUIREMENTS
50template <
class DataPo
int,
class _NFilter,
int DiffType,
typename T>
51 requires MEAN_POSITION_DER_REQUIREMENTS
53 const DataPoint& attributes, ScalarArray& dw)
55 Base::addLocalNeighbor(w, localQ, attributes, dw);
56 m_dSumP += localQ * dw;
59template <
class DataPo
int,
class _NFilter,
int DiffType,
typename T>
60 requires MEAN_NORMAL_DER_REQUIREMENTS
67template <
class DataPo
int,
class _NFilter,
int DiffType,
typename T>
68 requires MEAN_NORMAL_DER_REQUIREMENTS
70 const DataPoint& attributes, ScalarArray& dw)
72 Base::addLocalNeighbor(w, localQ, attributes, dw);
73 m_dSumN += attributes.normal() * dw;
void init()
Set the evaluation position and reset the internal states.
void addLocalNeighbor(Scalar w, const VectorType &localQ, const DataPoint &attributes, ScalarArray &dw)
Add a neighbor to perform the fit.
void init()
Set the evaluation position and reset the internal states.
void addLocalNeighbor(Scalar w, const VectorType &localQ, const DataPoint &attributes)
Add a neighbor to perform the fit.
void init()
Set the evaluation position and reset the internal states.
void addLocalNeighbor(Scalar w, const VectorType &localQ, const DataPoint &attributes, ScalarArray &dw)
Add a neighbor to perform the fit.