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

Functions to compare sets of samples. More...

#include "pdf1d_compare_samples.h"

Go to the source code of this file.

Functions

double pdf1d_prop_larger (const double *x1, int n1, const double *x2, int n2)
 Return the average number of elements of x2 greater than each x1[i].
bool pdf1d_larger_samples (const double *x1, int n1, const double *x2, int n2, double p)
 Return true if x1[i] significantly larger than x2[j].
bool pdf1d_smaller_samples (const double *x1, int n1, const double *x2, int n2, double p)
 Return true if x1[i] significantly smaller than x2[j].
int pdf1d_select_largest_samples (vcl_vector< const double * > &x, vcl_vector< int > &n, double p)
 Select the samples which are on average largest.

Detailed Description

Functions to compare sets of samples.

Author:
Tim Cootes

Definition in file pdf1d_compare_samples.cxx.


Function Documentation

bool pdf1d_larger_samples ( const double *  x1,
int  n1,
const double *  x2,
int  n2,
double  p 
)

Return true if x1[i] significantly larger than x2[j].

Essentially tests if on average a sample from x1 is larger than one from x2

Definition at line 22 of file pdf1d_compare_samples.cxx.

double pdf1d_prop_larger ( const double *  x1,
int  n1,
const double *  x2,
int  n2 
)

Return the average number of elements of x2 greater than each x1[i].

Definition at line 9 of file pdf1d_compare_samples.cxx.

int pdf1d_select_largest_samples ( vcl_vector< const double * > &  x,
vcl_vector< int > &  n,
double  p 
)

Select the samples which are on average largest.

Where there is ambiguity return smallest index.

Definition at line 39 of file pdf1d_compare_samples.cxx.

bool pdf1d_smaller_samples ( const double *  x1,
int  n1,
const double *  x2,
int  n2,
double  p 
)

Return true if x1[i] significantly smaller than x2[j].

Essentially tests if on average a sample from x1 is smaller than one from x2

Definition at line 31 of file pdf1d_compare_samples.cxx.