primatologist-gpl 6.0.4
aims::NormalEstimation< DataType, WeightType, MaskType > Class Template Reference

#include <primatologist/proba/normal.h>

Public Member Functions

 NormalEstimation ()
 
 ~NormalEstimation ()
 
void setData (const carto::VolumeRef< DataType > &data=vol::empty< DataType >())
 
void setWeight (const carto::VolumeRef< WeightType > &weight=vol::empty< WeightType >())
 
void setMask (const carto::VolumeRef< MaskType > &mask=vol::empty< MaskType >())
 
void setBessel (bool bessel=true)
 
void setRobust (bool robust=true)
 
void setMultiWeights (bool multi=true)
 
void fit ()
 
double getMu () const
 
double getSigma () const
 
NormalDistribution getDistribution () const
 
std::vector< NormalDistributiongetDistributionVector () const
 

Protected Member Functions

bool inMask (long x=0, long y=0, long z=0, long t=0)
 
void fitOne (const carto::VolumeRef< WeightType > &volweight, NormalDistribution &distrib)
 

Detailed Description

template<typename DataType = double, typename WeightType = double, typename MaskType = char>
class aims::NormalEstimation< DataType, WeightType, MaskType >

Definition at line 73 of file normal.h.

Constructor & Destructor Documentation

◆ NormalEstimation()

template<typename DataType, typename WeightType, typename MaskType>
aims::NormalEstimation< DataType, WeightType, MaskType >::NormalEstimation ( )

Definition at line 38 of file normal_d.h.

◆ ~NormalEstimation()

template<typename DataType, typename WeightType, typename MaskType>
aims::NormalEstimation< DataType, WeightType, MaskType >::~NormalEstimation ( )

Definition at line 51 of file normal_d.h.

Member Function Documentation

◆ fit()

template<typename DataType, typename WeightType, typename MaskType>
void aims::NormalEstimation< DataType, WeightType, MaskType >::fit ( )

Definition at line 162 of file normal_d.h.

References fitOne().

◆ fitOne()

template<typename DataType, typename WeightType, typename MaskType>
void aims::NormalEstimation< DataType, WeightType, MaskType >::fitOne ( const carto::VolumeRef< WeightType > & volweight,
NormalDistribution & distrib )
protected

Definition at line 185 of file normal_d.h.

References inMask(), aims::NormalDistribution::setMu(), and aims::NormalDistribution::setSigma().

Referenced by fit().

◆ getDistribution()

template<typename DataType, typename WeightType, typename MaskType>
NormalDistribution aims::NormalEstimation< DataType, WeightType, MaskType >::getDistribution ( ) const

Definition at line 122 of file normal_d.h.

◆ getDistributionVector()

template<typename DataType, typename WeightType, typename MaskType>
std::vector< NormalDistribution > aims::NormalEstimation< DataType, WeightType, MaskType >::getDistributionVector ( ) const

Definition at line 129 of file normal_d.h.

◆ getMu()

template<typename DataType, typename WeightType, typename MaskType>
double aims::NormalEstimation< DataType, WeightType, MaskType >::getMu ( ) const

Definition at line 109 of file normal_d.h.

◆ getSigma()

template<typename DataType, typename WeightType, typename MaskType>
double aims::NormalEstimation< DataType, WeightType, MaskType >::getSigma ( ) const

Definition at line 115 of file normal_d.h.

◆ inMask()

template<typename DataType, typename WeightType, typename MaskType>
bool aims::NormalEstimation< DataType, WeightType, MaskType >::inMask ( long x = 0,
long y = 0,
long z = 0,
long t = 0 )
inlineprotected

Definition at line 137 of file normal_d.h.

Referenced by fitOne().

◆ setBessel()

template<typename DataType, typename WeightType, typename MaskType>
void aims::NormalEstimation< DataType, WeightType, MaskType >::setBessel ( bool bessel = true)

Definition at line 89 of file normal_d.h.

◆ setData()

template<typename DataType, typename WeightType, typename MaskType>
void aims::NormalEstimation< DataType, WeightType, MaskType >::setData ( const carto::VolumeRef< DataType > & data = vol::empty<DataType>())

Definition at line 58 of file normal_d.h.

◆ setMask()

template<typename DataType, typename WeightType, typename MaskType>
void aims::NormalEstimation< DataType, WeightType, MaskType >::setMask ( const carto::VolumeRef< MaskType > & mask = vol::empty<MaskType>())

Definition at line 76 of file normal_d.h.

◆ setMultiWeights()

template<typename DataType, typename WeightType, typename MaskType>
void aims::NormalEstimation< DataType, WeightType, MaskType >::setMultiWeights ( bool multi = true)

Definition at line 101 of file normal_d.h.

◆ setRobust()

template<typename DataType, typename WeightType, typename MaskType>
void aims::NormalEstimation< DataType, WeightType, MaskType >::setRobust ( bool robust = true)

Definition at line 95 of file normal_d.h.

◆ setWeight()

template<typename DataType, typename WeightType, typename MaskType>
void aims::NormalEstimation< DataType, WeightType, MaskType >::setWeight ( const carto::VolumeRef< WeightType > & weight = vol::empty<WeightType>())

Definition at line 69 of file normal_d.h.


The documentation for this class was generated from the following files: