Ponca  eb7239a9c07e156fb1edc6faac7fe89e2b256bda
Point Cloud Analysis library
Loading...
Searching...
No Matches
MeanPositionDer< DataPoint, _NFilter, DiffType, T > Class Template Reference

Compute the derivatives of the input points barycenter. More...

#include <mean.h>

Inheritance diagram for MeanPositionDer< DataPoint, _NFilter, DiffType, T >:
Collaboration diagram for MeanPositionDer< DataPoint, _NFilter, DiffType, T >:

Public Types

using Scalar = typename DataPoint::Scalar
 Alias to scalar type.
using VectorType = typename Base::VectorType
 Alias to vector type.
using NeighborFilter = typename Base::NeighborFilter
 Alias to the filter applied on the neighbors.
using ScalarArray = typename Base::ScalarArray
 Alias to scalar derivatives array.
using VectorArray = typename Base::VectorArray
 Alias to vector derivatives array.

Public Member Functions

MeanPositionDer< DataPoint, _NFilter, DiffType, T > & meanPositionDer ()
 Explicit conversion to CLASSNAME, to access methods potentially hidden by heritage.
const MeanPositionDer< DataPoint, _NFilter, DiffType, T > & meanPositionDer () const
 Explicit conversion to CLASSNAME, to access methods potentially hidden by heritage.
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.

Protected Types

using Base = T
 Base class of the procedure.

Protected Attributes

VectorArray m_dSumP {VectorArray::Zero()}
 Derivatives of the input points vectors.

Detailed Description

template<class DataPoint, class _NFilter, int DiffType, typename T>
requires ProvidesBasketDiffUnitBase<T>&& ProvidesMeanPosition<T>
class MeanPositionDer< DataPoint, _NFilter, DiffType, T >

Compute the derivatives of the input points barycenter.

This primitive requires:

ProvidePrimitiveDerivative, ProvidesMeanPosition

This primitive provides:

ProvidesMeanPositionDerivative 
See also
MeanNormal

Definition at line 122 of file mean.h.

Member Typedef Documentation

◆ Base

template<class DataPoint, class _NFilter, int DiffType, typename T>
using MeanPositionDer< DataPoint, _NFilter, DiffType, T >::Base = T
protected

Base class of the procedure.

Definition at line 124 of file mean.h.

◆ NeighborFilter

template<class DataPoint, class _NFilter, int DiffType, typename T>
using MeanPositionDer< DataPoint, _NFilter, DiffType, T >::NeighborFilter = typename Base::NeighborFilter

Alias to the filter applied on the neighbors.

Definition at line 124 of file mean.h.

◆ Scalar

template<class DataPoint, class _NFilter, int DiffType, typename T>
using MeanPositionDer< DataPoint, _NFilter, DiffType, T >::Scalar = typename DataPoint::Scalar

Alias to scalar type.

Definition at line 124 of file mean.h.

◆ ScalarArray

template<class DataPoint, class _NFilter, int DiffType, typename T>
using MeanPositionDer< DataPoint, _NFilter, DiffType, T >::ScalarArray = typename Base::ScalarArray

Alias to scalar derivatives array.

Definition at line 125 of file mean.h.

◆ VectorArray

template<class DataPoint, class _NFilter, int DiffType, typename T>
using MeanPositionDer< DataPoint, _NFilter, DiffType, T >::VectorArray = typename Base::VectorArray

Alias to vector derivatives array.

Definition at line 125 of file mean.h.

◆ VectorType

template<class DataPoint, class _NFilter, int DiffType, typename T>
using MeanPositionDer< DataPoint, _NFilter, DiffType, T >::VectorType = typename Base::VectorType

Alias to vector type.

Definition at line 124 of file mean.h.

Member Function Documentation

◆ addLocalNeighbor()

template<class DataPoint, class _NFilter, int DiffType, typename T>
requires ProvidesBasketDiffUnitBase<T>&& ProvidesMeanPosition<T>
void MeanPositionDer< DataPoint, _NFilter, DiffType, T >::addLocalNeighbor ( Scalar w,
const VectorType & localQ,
const DataPoint & attributes,
ScalarArray & dw )
inline

Add a neighbor to perform the fit.

Definition at line 53 of file mean.h.

◆ init()

template<class DataPoint, class _NFilter, int DiffType, typename T>
requires ProvidesBasketDiffUnitBase<T>&& ProvidesMeanPosition<T>
void MeanPositionDer< DataPoint, _NFilter, DiffType, T >::init ( )
inline

Set the evaluation position and reset the internal states.

Warning
Must be called be for any computation (but * after #setNeighborFilter)

Definition at line 45 of file mean.h.

◆ meanPositionDer() [1/2]

template<class DataPoint, class _NFilter, int DiffType, typename T>
MeanPositionDer< DataPoint, _NFilter, DiffType, T > & MeanPositionDer< DataPoint, _NFilter, DiffType, T >::meanPositionDer ( )
inline

Explicit conversion to CLASSNAME, to access methods potentially hidden by heritage.

Definition at line 132 of file mean.h.

◆ meanPositionDer() [2/2]

template<class DataPoint, class _NFilter, int DiffType, typename T>
const MeanPositionDer< DataPoint, _NFilter, DiffType, T > & MeanPositionDer< DataPoint, _NFilter, DiffType, T >::meanPositionDer ( ) const
inline

Explicit conversion to CLASSNAME, to access methods potentially hidden by heritage.

Definition at line 132 of file mean.h.

Member Data Documentation

◆ m_dSumP

template<class DataPoint, class _NFilter, int DiffType, typename T>
VectorArray MeanPositionDer< DataPoint, _NFilter, DiffType, T >::m_dSumP {VectorArray::Zero()}
protected

Derivatives of the input points vectors.

Definition at line 129 of file mean.h.