Ponca  a3bcca651499c602bd353676d4b50af3643c4cad
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::NoWeightFunc< DataPoint > Class Template Reference

Weighting function that set uniform weight to all samples. More...

#include <weightFunc.h>

+ Collaboration diagram for Ponca::NoWeightFunc< DataPoint >:

Public Types

using Scalar = typename DataPoint::Scalar
 Scalar type from DataPoint.
 
using VectorType = typename DataPoint::VectorType
 Vector type from DataPoint.
 
using MatrixType = typename DataPoint::MatrixType
 Matrix type from DataPoint.
 
using WeightReturnType = std::pair< Scalar, VectorType >
 Return type of the method w()
 

Public Member Functions

 NoWeightFunc (const Scalar &=Scalar(0))
 Constructor that defines the current evaluation scale.
 
void init (const VectorType &_evalPos=VectorType::Zero())
 Initialization method, called by the fitting procedure.
 
const VectorTypebasisCenter () const
 
VectorType convertToLocalBasis (const VectorType &_q) const
 Convert query from global to local coordinate system.
 
WeightReturnType w (const VectorType &_q, const DataPoint &) const
 Compute the weight of the given query, which is always $1$.
 
VectorType spacedw (const VectorType &, const DataPoint &) const
 First order derivative in space (for each spatial dimension \(\mathsf{x})\), which are always $0$.
 
MatrixType spaced2w (const VectorType &, const DataPoint &) const
 Second order derivative in space (for each spatial dimension \(\mathsf{x})\), which are always $0$.
 
Scalar scaledw (const VectorType &, const DataPoint &) const
 First order derivative in scale \(t\), which are always $0$.
 
Scalar scaled2w (const VectorType &, const DataPoint &) const
 Second order derivative in scale \(t\), which are always $0$.
 
VectorType scaleSpaced2w (const VectorType &, const DataPoint &) const
 Cross derivative in scale \(t\) and in space (for each spatial dimension \(\mathsf{x})\), which are always $0$.
 

Detailed Description

template<class DataPoint>
class Ponca::NoWeightFunc< DataPoint >

Weighting function that set uniform weight to all samples.

In contrast to DistWeightFunc with ConstantWeight, it does not check for scale range. It still performs local basis conversion to maintain computation accuracy

Definition at line 219 of file weightFunc.h.

Member Typedef Documentation

◆ MatrixType

template<class DataPoint >
using Ponca::NoWeightFunc< DataPoint >::MatrixType = typename DataPoint::MatrixType

Matrix type from DataPoint.

Definition at line 227 of file weightFunc.h.

◆ Scalar

template<class DataPoint >
using Ponca::NoWeightFunc< DataPoint >::Scalar = typename DataPoint::Scalar

Scalar type from DataPoint.

Definition at line 223 of file weightFunc.h.

◆ VectorType

template<class DataPoint >
using Ponca::NoWeightFunc< DataPoint >::VectorType = typename DataPoint::VectorType

Vector type from DataPoint.

Definition at line 225 of file weightFunc.h.

◆ WeightReturnType

template<class DataPoint >
using Ponca::NoWeightFunc< DataPoint >::WeightReturnType = std:: pair <Scalar, VectorType>

Return type of the method w()

Definition at line 229 of file weightFunc.h.

Constructor & Destructor Documentation

◆ NoWeightFunc()

template<class DataPoint >
Ponca::NoWeightFunc< DataPoint >::NoWeightFunc ( const Scalar = Scalar(0))
inline

Constructor that defines the current evaluation scale.

Definition at line 234 of file weightFunc.h.

Member Function Documentation

◆ basisCenter()

template<class DataPoint >
const VectorType & Ponca::NoWeightFunc< DataPoint >::basisCenter ( ) const
inline

Definition at line 242 of file weightFunc.h.

◆ convertToLocalBasis()

template<class DataPoint >
VectorType Ponca::NoWeightFunc< DataPoint >::convertToLocalBasis ( const VectorType _q) const
inline

Convert query from global to local coordinate system.

Definition at line 246 of file weightFunc.h.

◆ init()

template<class DataPoint >
void Ponca::NoWeightFunc< DataPoint >::init ( const VectorType _evalPos = VectorType::Zero())
inline

Initialization method, called by the fitting procedure.

Parameters
_evalPosBasis center

Definition at line 240 of file weightFunc.h.

◆ scaled2w()

template<class DataPoint >
Scalar Ponca::NoWeightFunc< DataPoint >::scaled2w ( const VectorType ,
const DataPoint &   
) const
inline

Second order derivative in scale \(t\), which are always $0$.

Parameters
_qQuery in global coordinate

Definition at line 290 of file weightFunc.h.

◆ scaledw()

template<class DataPoint >
Scalar Ponca::NoWeightFunc< DataPoint >::scaledw ( const VectorType ,
const DataPoint &   
) const
inline

First order derivative in scale \(t\), which are always $0$.

Parameters
_qQuery in global coordinate

Definition at line 282 of file weightFunc.h.

◆ scaleSpaced2w()

template<class DataPoint >
VectorType Ponca::NoWeightFunc< DataPoint >::scaleSpaced2w ( const VectorType ,
const DataPoint &   
) const
inline

Cross derivative in scale \(t\) and in space (for each spatial dimension \(\mathsf{x})\), which are always $0$.

Parameters
_qQuery in global coordinate

Definition at line 299 of file weightFunc.h.

◆ spaced2w()

template<class DataPoint >
MatrixType Ponca::NoWeightFunc< DataPoint >::spaced2w ( const VectorType ,
const DataPoint &   
) const
inline

Second order derivative in space (for each spatial dimension \(\mathsf{x})\), which are always $0$.

Parameters
_qQuery in global coordinate

Definition at line 274 of file weightFunc.h.

◆ spacedw()

template<class DataPoint >
VectorType Ponca::NoWeightFunc< DataPoint >::spacedw ( const VectorType ,
const DataPoint &   
) const
inline

First order derivative in space (for each spatial dimension \(\mathsf{x})\), which are always $0$.

Parameters
_qQuery in global coordinate

Definition at line 265 of file weightFunc.h.

◆ w()

template<class DataPoint >
WeightReturnType Ponca::NoWeightFunc< DataPoint >::w ( const VectorType _q,
const DataPoint &   
) const
inline

Compute the weight of the given query, which is always $1$.

Parameters
_qQuery in global coordinate

Definition at line 253 of file weightFunc.h.