Test how often a particular comparator chooses correct pdf Generate samples from one pdf. Use comparator to decide which of several pdfs samples belong to. Generate graph of correct vs N.samples. More...
#include <vcl_iostream.h>
#include <vnl/vnl_vector.h>
#include <pdf1d/pdf1d_compare_to_pdf_ks.h>
#include <pdf1d/pdf1d_compare_to_pdf_bhat.h>
#include <pdf1d/pdf1d_flat.h>
#include <pdf1d/pdf1d_sampler.h>
#include <pdf1d/pdf1d_gaussian.h>
#include <pdf1d/pdf1d_exponential.h>
#include <pdf1d/pdf1d_exponential_builder.h>
#include <pdf1d/pdf1d_gaussian_builder.h>
#include <pdf1d/pdf1d_gaussian_kernel_pdf_builder.h>
#include <pdf1d/pdf1d_select_pdf.h>
Go to the source code of this file.
Functions | |
double | pdf1d_test_pdf_selection (vcl_vector< const pdf1d_pdf * > &pdf, int n_samples, pdf1d_compare_to_pdf &comparator, int n_tests) |
Generate samples from pdf[0]. See how often pdf[0] is selected. | |
double | pdf1d_test_bhat_pdf_selection (vcl_vector< const pdf1d_pdf * > &pdf, int n_samples, vcl_vector< pdf1d_builder * > &pdf_builder, int n_tests) |
Generate samples from pdf[0]. See how often pdf[0] is selected. | |
void | graph_selection_results (const vcl_string &path, vcl_vector< const pdf1d_pdf * > &pdf, pdf1d_compare_to_pdf &comparator, int n_tests) |
void | graph_bhat_selection_results (const vcl_string &path, vcl_vector< const pdf1d_pdf * > &pdf, vcl_vector< pdf1d_builder * > &pdf_builder, int n_tests) |
void | test_flat_vs_gauss () |
void | test_g1_v_g2 () |
void | test_g2_v_g3 () |
void | test_e_v_g () |
int | main () |
Test how often a particular comparator chooses correct pdf Generate samples from one pdf. Use comparator to decide which of several pdfs samples belong to. Generate graph of correct vs N.samples.
Definition in file select_pdf.cxx.
void graph_bhat_selection_results | ( | const vcl_string & | path, |
vcl_vector< const pdf1d_pdf * > & | pdf, | ||
vcl_vector< pdf1d_builder * > & | pdf_builder, | ||
int | n_tests | ||
) |
Definition at line 86 of file select_pdf.cxx.
void graph_selection_results | ( | const vcl_string & | path, |
vcl_vector< const pdf1d_pdf * > & | pdf, | ||
pdf1d_compare_to_pdf & | comparator, | ||
int | n_tests | ||
) |
Definition at line 70 of file select_pdf.cxx.
int main | ( | ) |
Definition at line 224 of file select_pdf.cxx.
double pdf1d_test_bhat_pdf_selection | ( | vcl_vector< const pdf1d_pdf * > & | pdf, |
int | n_samples, | ||
vcl_vector< pdf1d_builder * > & | pdf_builder, | ||
int | n_tests | ||
) |
Generate samples from pdf[0]. See how often pdf[0] is selected.
Definition at line 48 of file select_pdf.cxx.
double pdf1d_test_pdf_selection | ( | vcl_vector< const pdf1d_pdf * > & | pdf, |
int | n_samples, | ||
pdf1d_compare_to_pdf & | comparator, | ||
int | n_tests | ||
) |
Generate samples from pdf[0]. See how often pdf[0] is selected.
Definition at line 26 of file select_pdf.cxx.
void test_e_v_g | ( | ) |
Definition at line 191 of file select_pdf.cxx.
void test_flat_vs_gauss | ( | ) |
Definition at line 102 of file select_pdf.cxx.
void test_g1_v_g2 | ( | ) |
Definition at line 126 of file select_pdf.cxx.
void test_g2_v_g3 | ( | ) |
Definition at line 155 of file select_pdf.cxx.