Plot kernel estimate to sampled data Sample from one distribution, generate kernel estimate, generate text file for plotting. More...
#include <vcl_iostream.h>#include <vnl/vnl_vector.h>#include <vnl/vnl_random.h>#include <pdf1d/pdf1d_flat.h>#include <pdf1d/pdf1d_exponential.h>#include <pdf1d/pdf1d_gaussian.h>#include <pdf1d/pdf1d_gaussian_builder.h>#include <pdf1d/pdf1d_epanech_kernel_pdf_builder.h>#include <pdf1d/pdf1d_gaussian_kernel_pdf_builder.h>Go to the source code of this file.
Functions | |
| void | plot_estimate (const vcl_string &true_pdf_file, const vcl_string &new_pdf_file, const pdf1d_pdf &pdf, const pdf1d_builder &builder, int n_samples, double min_x, double max_x, int nx) |
| Generate n samples from pdf, build a pdf and generate text file of resulting pdf. | |
| int | main () |
Variables | |
| vnl_random | mz_random |
Plot kernel estimate to sampled data Sample from one distribution, generate kernel estimate, generate text file for plotting.
Definition in file plot_pdf_estimate.cxx.
| int main | ( | ) |
Definition at line 51 of file plot_pdf_estimate.cxx.
| void plot_estimate | ( | const vcl_string & | true_pdf_file, |
| const vcl_string & | new_pdf_file, | ||
| const pdf1d_pdf & | pdf, | ||
| const pdf1d_builder & | builder, | ||
| int | n_samples, | ||
| double | min_x, | ||
| double | max_x, | ||
| int | nx | ||
| ) |
Generate n samples from pdf, build a pdf and generate text file of resulting pdf.
Definition at line 22 of file plot_pdf_estimate.cxx.
Definition at line 19 of file plot_pdf_estimate.cxx.
1.7.5.1