ANIMA  4.0
Namespaces | Functions
animaDistributionSampling.hxx File Reference
#include "animaDistributionSampling.h"
#include <cmath>
#include <boost/math/distributions/beta.hpp>
#include <animaVectorOperations.h>
#include <animaLogarithmFunctions.h>
#include <animaBaseTensorTools.h>
#include <animaMatrixOperations.h>
#include <itkMacro.h>
+ Include dependency graph for animaDistributionSampling.hxx:
+ 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)