Ponca  8e4373a7fc557bbfb1afb9210d70f03872388d04
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame > Class Template Reference

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

#include <weightFunc.h>

+ Inheritance diagram for Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >:
+ Collaboration diagram for Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >:

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()
 
using NeighborhoodFrame = _NeighborhoodFrame< DataPoint >
 

Public Member Functions

 NoWeightFuncBase (const VectorType &v=VectorType::Zero(), Scalar=0)
 Default constructor.
 
WeightReturnType operator() (const DataPoint &_q) 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, template< typename >typename _NeighborhoodFrame>
class Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >

Base Weighting function that set uniform weight to all samples.

In contrast to DistWeightFunc with ConstantWeight, it does not check for scale range.

Template Parameters
_NeighborhoodFrameBase NeighborhoodFrame used to performs (or not) local basis conversion and maintain computation accuracy

Definition at line 291 of file weightFunc.h.

Member Typedef Documentation

◆ MatrixType

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
using Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::MatrixType = typename DataPoint::MatrixType

Matrix type from DataPoint.

Definition at line 299 of file weightFunc.h.

◆ NeighborhoodFrame

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
using Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::NeighborhoodFrame = _NeighborhoodFrame<DataPoint>

Definition at line 303 of file weightFunc.h.

◆ Scalar

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
using Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::Scalar = typename DataPoint::Scalar

Scalar type from DataPoint.

Definition at line 295 of file weightFunc.h.

◆ VectorType

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
using Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::VectorType = typename DataPoint::VectorType

Vector type from DataPoint.

Definition at line 297 of file weightFunc.h.

◆ WeightReturnType

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
using Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::WeightReturnType = std:: pair <Scalar, VectorType>

Return type of the method #w()

Definition at line 301 of file weightFunc.h.

Constructor & Destructor Documentation

◆ NoWeightFuncBase()

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::NoWeightFuncBase ( const VectorType v = VectorType::Zero(),
Scalar  = 0 
)
inline

Default constructor.

All parameters are ignored (kept for API compatibility with DistWeightFunc.

Definition at line 308 of file weightFunc.h.

Member Function Documentation

◆ operator()()

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
WeightReturnType Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::operator() ( const DataPoint &  _q) const
inline

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

Parameters
_qQuery in global coordinate system

Definition at line 315 of file weightFunc.h.

◆ scaled2w()

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
Scalar Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::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 350 of file weightFunc.h.

◆ scaledw()

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
Scalar Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::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 342 of file weightFunc.h.

◆ scaleSpaced2w()

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
VectorType Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::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 359 of file weightFunc.h.

◆ spaced2w()

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
MatrixType Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::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 334 of file weightFunc.h.

◆ spacedw()

template<class DataPoint , template< typename >typename _NeighborhoodFrame>
VectorType Ponca::NoWeightFuncBase< DataPoint, _NeighborhoodFrame >::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 system

Definition at line 325 of file weightFunc.h.