ANIMA  4.0
Namespaces | Functions
animaDistributionSampling.h File Reference
#include <random>
#include <vnl/vnl_matrix.h>
#include <vnl/vnl_vector_fixed.h>
#include <itkPoint.h>
#include <itkVector.h>
#include "animaDistributionSampling.hxx"
+ Include dependency graph for animaDistributionSampling.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 anima
 

Functions

template<class T >
unsigned int anima::SampleFromBernoulliDistribution (const T &p, std::mt19937 &generator)
 
template<class T >
double anima::SampleFromGaussianDistribution (const T &mean, const T &std, std::mt19937 &generator)
 
template<class VectorType , class ScalarType >
void anima::SampleFromMultivariateGaussianDistribution (const VectorType &mean, const vnl_matrix< ScalarType > &mat, VectorType &resVec, std::mt19937 &generator, bool isMatCovariance=true)
 
template<class T >
double anima::SampleFromUniformDistribution (const T &a, const T &b, std::mt19937 &generator)
 
template<class VectorType >
void anima::SampleFromUniformDistributionOn2Sphere (std::mt19937 &generator, VectorType &resVec)
 
template<class VectorType , class ScalarType >
void anima::SampleFromVMFDistribution (const ScalarType &kappa, const VectorType &meanDirection, VectorType &resVec, std::mt19937 &generator)
 
template<class VectorType , class ScalarType >
void anima::SampleFromVMFDistributionNumericallyStable (const ScalarType &kappa, const VectorType &meanDirection, VectorType &resVec, std::mt19937 &generator)
 
template<class ScalarType , class VectorType >
void anima::SampleFromWatsonDistribution (const ScalarType &kappa, const VectorType &meanDirection, VectorType &resVec, unsigned int DataDimension, std::mt19937 &generator)
 
template<class ScalarType , unsigned int DataDimension>
void anima::SampleFromWatsonDistribution (const ScalarType &kappa, const vnl_vector_fixed< ScalarType, DataDimension > &meanDirection, vnl_vector_fixed< ScalarType, DataDimension > &resVec, std::mt19937 &generator)
 
template<class ScalarType , unsigned int DataDimension>
void anima::SampleFromWatsonDistribution (const ScalarType &kappa, const itk::Point< ScalarType, DataDimension > &meanDirection, itk::Point< ScalarType, DataDimension > &resVec, std::mt19937 &generator)
 
template<class ScalarType , unsigned int DataDimension>
void anima::SampleFromWatsonDistribution (const ScalarType &kappa, const itk::Vector< ScalarType, DataDimension > &meanDirection, itk::Vector< ScalarType, DataDimension > &resVec, std::mt19937 &generator)