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;
211#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.
This Source Code Form is subject to the terms of the Mozilla Public License, v.