10#include PONCA_MULTIARCH_INCLUDE_CU_STD(utility)
27template <
class DataPo
int,
class WeightKernel>
32 using Scalar =
typename DataPoint::Scalar;
93 const DataPoint& )
const;
112 const DataPoint& )
const;
136 const DataPoint& )
const;
153 const DataPoint& )
const;
174 const DataPoint& )
const;
196 const DataPoint& )
const;
218template <
class DataPo
int>
223 using Scalar =
typename DataPoint::Scalar;
240 PONCA_MULTIARCH
inline void init(
const VectorType& _evalPos = VectorType::Zero() ) { m_p = _evalPos; }
242 PONCA_MULTIARCH
inline const VectorType& basisCenter()
const
254 const DataPoint& )
const
266 const DataPoint& )
const
267 {
return VectorType::Zeros(); }
275 const DataPoint& )
const
276 {
return MatrixType::Zeros(); }
283 const DataPoint& )
const
291 const DataPoint& )
const
300 const DataPoint& )
const
301 {
return VectorType::Zeros(); }
307#include "weightFunc.hpp"
Weighting function based on the euclidean distance between a query and a reference position.
VectorType convertToLocalBasis(const VectorType &_q) const
Convert query from global to local coordinate system (used internally(.
DistWeightFunc(const Scalar &_t=Scalar(1.))
Constructor that defines the current evaluation scale.
Scalar scaledw(const VectorType &_q, const DataPoint &) const
First order derivative in scale .
Scalar scaled2w(const VectorType &_q, const DataPoint &) const
Second order derivative in scale .
VectorType scaleSpaced2w(const VectorType &_q, const DataPoint &) const
Cross derivative in scale and in space (for each spatial dimension .
MatrixType spaced2w(const VectorType &_q, const DataPoint &) const
Second order derivative in space (for each spatial dimension .
typename DataPoint::MatrixType MatrixType
Matrix type from DataPoint.
Scalar evalScale() const
Access to the evaluation scale set during the initialization.
WeightReturnType w(const VectorType &_q, const DataPoint &) const
Compute the weight of the given query with respect to its coordinates.
VectorType convertToGlobalBasis(const VectorType &_q) const
Convert position from local to global coordinate system.
VectorType spacedw(const VectorType &_q, const DataPoint &) const
First order derivative in space (for each spatial dimension .
std::pair< Scalar, VectorType > WeightReturnType
Return type of the method w()
typename DataPoint::Scalar Scalar
Scalar type from DataPoint.
const VectorType & basisCenter() const
Get access to basis center location in global coordinate system.
WeightKernel m_wk
1D function applied to weight queries
Scalar m_t
Evaluation scale.
typename DataPoint::VectorType VectorType
Vector type from DataPoint.
const VectorType & evalPos() const
Access to the evaluation position set during the initialization.
VectorType m_p
basis center
void init(const VectorType &_evalPos)
Initialization method, called by the fitting procedure.
Weighting function that set uniform weight to all samples.
Scalar scaled2w(const VectorType &, const DataPoint &) const
Second order derivative in scale , which are always $0$.
MatrixType spaced2w(const VectorType &, const DataPoint &) const
Second order derivative in space (for each spatial dimension , which are always $0$.
NoWeightFunc(const Scalar &=Scalar(0))
Constructor that defines the current evaluation scale.
typename DataPoint::MatrixType MatrixType
Matrix type from DataPoint.
WeightReturnType w(const VectorType &_q, const DataPoint &) const
Compute the weight of the given query, which is always $1$.
VectorType scaleSpaced2w(const VectorType &, const DataPoint &) const
Cross derivative in scale and in space (for each spatial dimension , which are always $0$.
Scalar scaledw(const VectorType &, const DataPoint &) const
First order derivative in scale , which are always $0$.
VectorType convertToLocalBasis(const VectorType &_q) const
Convert query from global to local coordinate system.
VectorType spacedw(const VectorType &, const DataPoint &) const
First order derivative in space (for each spatial dimension , which are always $0$.
void init(const VectorType &_evalPos=VectorType::Zero())
Initialization method, called by the fitting procedure.
typename DataPoint::VectorType VectorType
Vector type from DataPoint.
std::pair< Scalar, VectorType > WeightReturnType
Return type of the method w()
typename DataPoint::Scalar Scalar
Scalar type from DataPoint.
This Source Code Form is subject to the terms of the Mozilla Public License, v.