33 #ifndef GUM_LEARNING_CHI2_H 34 #define GUM_LEARNING_CHI2_H 40 #define GUM_LEARNING_CONFIDENCE_PROBA 0.05 70 Chi2(
const std::vector< std::size_t >& var_modalities,
203 #ifndef GUM_NO_INLINE Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void setConditioningNodes(const std::vector< Idx > &db_conditioning_ids)
Sets the conditioning nodes (useful for computing degrees of freedom).
static double __criticalValue(double proba, Size df)
Computes the critical value of a given chi2 test (used by the cache).
double __confidence_proba
The confidence probability used for critical values.
Size __conditioning_size
The domain size of the conditioning nodes.
#define GUM_LEARNING_CONFIDENCE_PROBA
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
HashTable< Idx, double > __critical_values
A set of already computed critical values.
Represent the chi2 distribution.
Size degreesOfFreedom(const std::pair< Idx, Idx > &pair)
Returns the number of degrees of freedom.
static double probaChi2(double x, Size df)
Computes the probability of chi2 value.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Chi2(const std::vector< std::size_t > &var_modalities, double confidence_proba=GUM_LEARNING_CONFIDENCE_PROBA)
Default constructor.
void setConfidenceProba(double new_proba)
Modifies the confidence probability.
Size Idx
Type for indexes.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
double criticalValue(const std::pair< Idx, Idx > &pair)
Computes the critical value according to the number of degrees of freedom.
Chi2 & operator=(const Chi2 &)=delete
Forbid used of the copy operator.
static double __probaZValue(double z)
Computes the probability of normal z value.
const std::vector< std::size_t > & __modalities
The modalities of the random variables.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.