51#ifndef DOXYGEN_SHOULD_SKIP_THIS
75 return computeStatistics_(idset, [](
double O,
double margX,
double margY,
double total) {
76 if (O == 0.0)
return 0.0;
77 return 2.0 * O * std::log((O * total) / (margX * margY));
A class for storing a pair of sets of NodeIds, the second one corresponding to a conditional set.
the class for computing G2 independence test scores
IndepTestG2 & operator=(const IndepTestG2 &from)
copy operator
std::pair< double, double > statistics_(const IdCondSet &idset)
compute the pair <G2 statistic,pvalue>
IndependenceTest & operator=(const IndependenceTest &from)
copy operator
std::pair< double, double > computeStatistics_(const IdCondSet &idset, CellContribFn cellContrib)
shared loop for chi-squared-family statistics
the class for computing G2 scores
the class for computing G2 scores
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities