Functions to calculate Bhattacharyya overlap. More...
#include <pdf1d/pdf1d_pdf.h>
Go to the source code of this file.
Functions | |
double | pdf1d_bhat_overlap (const pdf1d_pdf &pdf1, const pdf1d_pdf &pdf2, int n_samples=0, bool use_analytic=true) |
Estimate Bhattacharyya overlap between two pdfs. | |
double | pdf1d_bhat_overlap (const pdf1d_pdf &pdf, const double *x, const double *p, int n) |
double | pdf1d_bhat_overlap_gaussian (double mean, double variance, const double *x, const double *p, int n) |
double | pdf1d_bhat_overlap_gaussians (double mean1, double var1, double mean2, double var2) |
Bhat. overlap between two 1D Gaussians. | |
double | pdf1d_bhat_overlap_gaussians (const pdf1d_pdf &g1, const pdf1d_pdf &g2) |
Bhat. overlap between two 1D Gaussians. | |
double | pdf1d_bhat_overlap_gaussian_with_pdf (double mean, double var, const pdf1d_pdf &pdf, int n=100) |
Bhat. overlap between Gaussian and arbitrary pdf (estimate by sampling at n points). | |
double | pdf1d_bhat_overlap_gaussian_with_pdf (const pdf1d_pdf &gauss, const pdf1d_pdf &pdf, int n=100) |
Bhat. overlap between Gaussian and arbitrary pdf (estimate by sampling at n points). |
Functions to calculate Bhattacharyya overlap.
Definition in file pdf1d_bhat_overlap.h.
double pdf1d_bhat_overlap | ( | const pdf1d_pdf & | pdf1, |
const pdf1d_pdf & | pdf2, | ||
int | n_samples, | ||
bool | use_analytic | ||
) |
Estimate Bhattacharyya overlap between two pdfs.
If use_analytic is true and an analytic form exists, it will be used. Otherwise n_samples are drawn from pdf1 and used to estimate the overlap
Definition at line 16 of file pdf1d_bhat_overlap.cxx.
double pdf1d_bhat_overlap | ( | const pdf1d_pdf & | pdf, |
const double * | x, | ||
const double * | p, | ||
int | n | ||
) |
Definition at line 41 of file pdf1d_bhat_overlap.cxx.
double pdf1d_bhat_overlap_gaussian | ( | double | mean, |
double | variance, | ||
const double * | x, | ||
const double * | p, | ||
int | n | ||
) |
Definition at line 60 of file pdf1d_bhat_overlap.cxx.
double pdf1d_bhat_overlap_gaussian_with_pdf | ( | double | mean, |
double | var, | ||
const pdf1d_pdf & | pdf, | ||
int | n = 100 |
||
) |
Bhat. overlap between Gaussian and arbitrary pdf (estimate by sampling at n points).
Definition at line 92 of file pdf1d_bhat_overlap.cxx.
double pdf1d_bhat_overlap_gaussian_with_pdf | ( | const pdf1d_pdf & | gauss, |
const pdf1d_pdf & | pdf, | ||
int | n = 100 |
||
) |
Bhat. overlap between Gaussian and arbitrary pdf (estimate by sampling at n points).
Definition at line 117 of file pdf1d_bhat_overlap.cxx.
double pdf1d_bhat_overlap_gaussians | ( | double | mean1, |
double | var1, | ||
double | mean2, | ||
double | var2 | ||
) |
Bhat. overlap between two 1D Gaussians.
Definition at line 77 of file pdf1d_bhat_overlap.cxx.
Bhat. overlap between two 1D Gaussians.
Definition at line 86 of file pdf1d_bhat_overlap.cxx.