contrib/mul/pdf1d/pdf1d_select_pdf.h
Go to the documentation of this file.
00001 #ifndef pdf1d_select_pdf_h
00002 #define pdf1d_select_pdf_h
00003 //:
00004 // \file
00005 // \author Tim Cootes
00006 // \brief Functions to select a pdf or form of pdf for given data.
00007 
00008 #include <pdf1d/pdf1d_compare_to_pdf.h>
00009 #include <pdf1d/pdf1d_compare_to_pdf_bhat.h>
00010 
00011 
00012 //: Use the comparator to decide which pdf the data is most like
00013 //  Returns index of the chosen pdf.
00014 int pdf1d_select_pdf(const double* data, int n,
00015                      vcl_vector<const pdf1d_pdf*>& pdf,
00016                      pdf1d_compare_to_pdf& comparator);
00017 
00018 //: Use the comparator to decide which pdf the data is most like
00019 //  Typically matches data with pdf_builder[i] and computes difference
00020 //  between result and pdf[i]
00021 //  Returns index of the chosen pdf.
00022 int pdf1d_select_pdf(const double* data, int n,
00023                      vcl_vector<const pdf1d_pdf*>& pdf,
00024                      vcl_vector<pdf1d_builder*>& pdf_builder,
00025                      pdf1d_compare_to_pdf_bhat& comparator);
00026 
00027 //: Use the comparator to decide which pdf the data is most like
00028 //  Returns index of the chosen pdf.
00029 //  Uses bootstrap estimation of overlap
00030 int pdf1d_select_pdf_using_bootstrap(const double* data, int n,
00031                      vcl_vector<const pdf1d_pdf*>& pdf,
00032                      pdf1d_compare_to_pdf& comparator);
00033 
00034 //: Use the comparator to decide which pdf form the data is most like
00035 //  Returns index of the chosen pdf.
00036 int pdf1d_select_pdf_form(const double* data, int n,
00037                      vcl_vector<pdf1d_builder*>& pdf_builder,
00038                      pdf1d_compare_to_pdf& comparator);
00039 
00040 
00041 #endif // pdf1d_select_pdf_h