Functions
contrib/mul/vpdfl/vpdfl_prob_chi2.h File Reference

Functions for Chi distribution. More...

Go to the source code of this file.

Functions

double vpdfl_cum_prob_chi2 (int n_dof, double chi2)
 P(chi<chi2).
double vpdfl_chi2_for_cum_prob (double p, int n, double tol=0.001)
 Returns X such that P(chi<X | dof==n)==p.

Detailed Description

Functions for Chi distribution.

Author:
Tim Cootes
Date:
12-Apr-2001

Definition in file vpdfl_prob_chi2.h.


Function Documentation

double vpdfl_chi2_for_cum_prob ( double  p,
int  n,
double  tol = 0.001 
)

Returns X such that P(chi<X | dof==n)==p.

The value of Chi-Squared such that the probability that a random variable drawn from a chi-2 distribution is less than Chi_Squared is p.

Parameters:
pTarget probability
nNumber of dimensions
tolTolerance of result (default = 0.001)

Definition at line 9 of file vpdfl_prob_chi2.cxx.

double vpdfl_cum_prob_chi2 ( int  n_dof,
double  chi2 
)

P(chi<chi2).

Calculates the probability that a value generated at random from a chi-square distribution with given degrees of freedom is less than the value chi2

Parameters:
n_dofNumber of degrees of freedom
chi2Value of chi-squared

Definition at line 58 of file vpdfl_prob_chi2.cxx.