Functions
contrib/mul/pdf1d/pdf1d_bhat_overlap.cxx File Reference

Functions to calculate Bhattacharyya overlap. More...

#include "pdf1d_bhat_overlap.h"
#include <pdf1d/pdf1d_sampler.h>
#include <vcl_cmath.h>
#include <vnl/vnl_vector.h>
#include <vnl/vnl_math.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, bool use_analytic)
 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 m, double v, const double *x, const double *p, int n)
double pdf1d_bhat_overlap_gaussians (double m1, double v1, double m2, double v2)
 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 m, double v, const pdf1d_pdf &pdf, int n)
 Bhat. overlap between Gaussian and arbitrary pdf (estimate by sampling at n points).
double pdf1d_bhat_overlap_gaussian_with_pdf (const pdf1d_pdf &g, const pdf1d_pdf &pdf, int n)
 Bhat. overlap between Gaussian and arbitrary pdf (estimate by sampling at n points).

Detailed Description

Functions to calculate Bhattacharyya overlap.

Author:
Tim Cootes

Definition in file pdf1d_bhat_overlap.cxx.


Function Documentation

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  m,
double  v,
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  m,
double  v,
const pdf1d_pdf pdf,
int  n 
)

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 g,
const pdf1d_pdf pdf,
int  n 
)

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  m1,
double  v1,
double  m2,
double  v2 
)

Bhat. overlap between two 1D Gaussians.

Definition at line 77 of file pdf1d_bhat_overlap.cxx.

double pdf1d_bhat_overlap_gaussians ( const pdf1d_pdf g1,
const pdf1d_pdf g2 
)

Bhat. overlap between two 1D Gaussians.

Definition at line 86 of file pdf1d_bhat_overlap.cxx.