Functions to compare sets of samples. More...
#include <vcl_vector.h>
Go to the source code of this file.
Functions | |
bool | pdf1d_larger_samples (const double *x1, int n1, const double *x2, int n2, double p=0.6) |
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=0.6) |
Return true if x1[i] significantly smaller than x2[j]. | |
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]. | |
int | pdf1d_select_largest_samples (vcl_vector< const double * > &x, vcl_vector< int > &n, double p=0.6) |
Select the samples which are on average largest. |
Functions to compare sets of samples.
Definition in file pdf1d_compare_samples.h.
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 a proportion p of those from x2
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.
x[i] is considered larger than x[j] if on average each element of x[i] is larger than a proportion p of those in x[j]. Where there is ambiguity return smallest index.
x[i] | pointer to data with n[i] elements |
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 a proportion p of those from x2
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.