Ponca  8e4373a7fc557bbfb1afb9210d70f03872388d04
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::GaussianWeightKernel< _Scalar > Class Template Reference

Non-compact Gaussian WeightKernel. More...

#include <weightKernel.h>

+ Inheritance diagram for Ponca::GaussianWeightKernel< _Scalar >:
+ Collaboration diagram for Ponca::GaussianWeightKernel< _Scalar >:

Public Types

typedef _Scalar Scalar
 Scalar type defined outside the class.
 

Public Member Functions

Scalar f (const Scalar &_x) const
 Defines the Gaussian weighting function \(e^{\frac{-x^2}{2\sigma^2}}\).
 
Scalar df (const Scalar &_x) const
 Defines the Gaussian weighting function first order derivative \(-e^{\frac{-x^2}{2\sigma^2}}x\).
 
Scalar ddf (const Scalar &_x) const
 Defines the Gaussian weighting function second order derivative \(e^{\frac{-x^2}{2\sigma^2}}(x^2-1)\).
 

Static Public Attributes

static constexpr bool isCompact = false
 The kernel is not compact and can be evaluated outside of the scale bounds.
 
static constexpr bool isDValid = true
 df is defined and valid on the definition interval
 
static constexpr bool isDDValid = true
 ddf is defined and valid on the definition interval
 

Detailed Description

template<typename _Scalar>
class Ponca::GaussianWeightKernel< _Scalar >

Non-compact Gaussian WeightKernel.

Note
This is not a distribution, thus the kernel is not normalized in order to have \(f(0)=1\).
Warning
Also, as \(\sigma=t\), a GaussianWeightKernel generates a larger weighting function than a compact kernel, as \(f(1)\approx 0.6\). In order to obtain a comparable weight, it is recommended to scale down \(t\) by a factor of \(0.16\).

Definition at line 291 of file weightKernel.h.

Member Typedef Documentation

◆ Scalar

template<typename _Scalar >
typedef _Scalar Ponca::GaussianWeightKernel< _Scalar >::Scalar

Scalar type defined outside the class.

Definition at line 295 of file weightKernel.h.

Member Function Documentation

◆ ddf()

template<typename _Scalar >
Scalar Ponca::GaussianWeightKernel< _Scalar >::ddf ( const Scalar _x) const
inline

Defines the Gaussian weighting function second order derivative \(e^{\frac{-x^2}{2\sigma^2}}(x^2-1)\).

Definition at line 316 of file weightKernel.h.

◆ df()

template<typename _Scalar >
Scalar Ponca::GaussianWeightKernel< _Scalar >::df ( const Scalar _x) const
inline

Defines the Gaussian weighting function first order derivative \(-e^{\frac{-x^2}{2\sigma^2}}x\).

Definition at line 312 of file weightKernel.h.

◆ f()

template<typename _Scalar >
Scalar Ponca::GaussianWeightKernel< _Scalar >::f ( const Scalar _x) const
inline

Defines the Gaussian weighting function \(e^{\frac{-x^2}{2\sigma^2}}\).

As \(x\) is normalized wrt scale such that \( x \in [0:1]\), \(\sigma=0\) and the gaussian kernel boils down to \(e^{\frac{-x^2}{2}}\).

Definition at line 306 of file weightKernel.h.

Member Data Documentation

◆ isCompact

template<typename _Scalar >
constexpr bool Ponca::GaussianWeightKernel< _Scalar >::isCompact = false
staticconstexpr

The kernel is not compact and can be evaluated outside of the scale bounds.

Definition at line 298 of file weightKernel.h.

◆ isDDValid

template<typename _Scalar >
constexpr bool Ponca::GaussianWeightKernel< _Scalar >::isDDValid = true
staticconstexpr

ddf is defined and valid on the definition interval

Definition at line 322 of file weightKernel.h.

◆ isDValid

template<typename _Scalar >
constexpr bool Ponca::GaussianWeightKernel< _Scalar >::isDValid = true
staticconstexpr

df is defined and valid on the definition interval

Definition at line 320 of file weightKernel.h.