Go to the source code of this file.
Functions | |
float | vnl_chi_squared_cumulative (float chisq, int dof) |
template<class T> double | vnl_chi_squared_statistic_2 (T const *A, T const *B, int n, bool normalize) |
template<class T> double | vnl_chi_squared_statistic_12 (T const *A, T const *B, int n, bool normalize) |
Modifications dac (Manchester) 26/03/2001: tidied up documentation
Definition in file vnl_chi_squared.h.
|
Compute cumulative distribution function value for chi-squared distribution. |
|
(a[i] - b[i])^2 \sum --------------- i a[i] + b[i] |
|
Name space for various chi-squared distribution functions.
A[] and B[] are (pointers to) arrays containing histograms. If the 'normalize' parameter is true, each histogram will be implicitly normalized (so as to sum to 1) before the statistic is calculated : a[i] = A[i] / \sum_j A[j] b[i] = B[i] / \sum_j B[j] *DO NOT* add scale factors to these functions or you will break the code written by those who read the documentation. fsm. */ // (a[i] - b[i])^2 // \sum --------------- // i a[i] // template <class T> double vnl_chi_squared_statistic_1 (T const *A, T const *B, int n, bool normalize); /** (a[i] - b[i])^2 \sum --------------- i b[i] |