Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_chi_squared.h File Reference

Name space for various chi-squared distribution functions. More...

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)


Detailed Description

Name space for various chi-squared distribution functions.

Author:
Rupert Curwen, GE CRD, August 18th, 1998
    Modifications
    dac (Manchester) 26/03/2001: tidied up documentation
    

Definition in file vnl_chi_squared.h.


Function Documentation

float vnl_chi_squared_cumulative float    chisq,
int    dof
 

Compute cumulative distribution function value for chi-squared distribution.

template<class T>
double vnl_chi_squared_statistic_12 T const *    A,
T const *    B,
int    n,
bool    normalize
 

        (a[i] - b[i])^2
   \sum ---------------
     i    a[i] + b[i]
  

template<class T>
double vnl_chi_squared_statistic_2 T const *    A,
T const *    B,
int    n,
bool    normalize
 

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]
  


Generated at Fri May 21 01:16:06 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000