npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
bivariateChiSquare.hh
Go to the documentation of this file.
1 #ifndef NPSTAT_BIVARIATECHISQUARE_HH_
2 #define NPSTAT_BIVARIATECHISQUARE_HH_
3 
4 /*!
5 // \file bivariateChiSquare.hh
6 //
7 // \brief Simple expression for the chi-square in the bivariate case
8 //
9 // Author: I. Volobouev
10 //
11 // August 2022
12 */
13 
14 /**
15 // Imagine the bivariate normal density. mux and muy are shifts (means).
16 // sx and sy are the standard deviations (must be positive).
17 // rho is the correlation coefficient (must have |rho| < 1.0).
18 // The function returns the chi-square between the bivariate mean
19 // and the point (x, y). The bivariate normal density at (x, y)
20 // is proportional to exp(-chi_square/2).
21 */
22 double bivariateChiSquare(double mux, double muy, double sx, double sy,
23  double rho, double x, double y);
24 
25 #endif // NPSTAT_BIVARIATECHISQUARE_HH_
double bivariateChiSquare(double mux, double muy, double sx, double sy, double rho, double x, double y)