pdf1d_gaussian_builder Class Reference

#include <pdf1d_gaussian_builder.h>

Inheritance diagram for pdf1d_gaussian_builder:

Inheritance graph
[legend]

List of all members.


Detailed Description

Class to build pdf1d_gaussian objects.

Definition at line 18 of file pdf1d_gaussian_builder.h.


Public Member Functions

 pdf1d_gaussian_builder ()
 Dflt ctor.
virtual ~pdf1d_gaussian_builder ()
 Destructor.
virtual pdf1d_pdfnew_model () const
 Create empty model.
virtual vcl_string new_model_type () const
 Name of the model class returned by new_model().
virtual void set_min_var (double min_var)
 Define lower threshold on variance for built models.
virtual double min_var () const
 Get lower threshold on variance for built models.
virtual void build_from_array (pdf1d_pdf &model, const double *data, int n) const
 Build gaussian from n elements in data[i].
virtual void build (pdf1d_pdf &model, double mean) const
 Build default model with given mean.
virtual void build (pdf1d_pdf &model, mbl_data_wrapper< double > &data) const
 Build model from data.
virtual void weighted_build (pdf1d_pdf &model, mbl_data_wrapper< double > &data, const vcl_vector< double > &wts) const
 Build model from weighted data.
short version_no () const
 Version number for I/O.
virtual vcl_string is_a () const
 Name of the class.
virtual bool is_class (vcl_string const &s) const
 Does the name of the class match the argument?.
virtual pdf1d_builderclone () const
 Create a copy on the heap and return base class pointer.
virtual void print_summary (vcl_ostream &os) const
 Print class to os.
virtual void b_write (vsl_b_ostream &bfs) const
 Save class to binary file stream.
virtual void b_read (vsl_b_istream &bfs)
 Load class from binary file stream.

Private Member Functions

pdf1d_gaussiangaussian (pdf1d_pdf &model) const

Private Attributes

double min_var_

Constructor & Destructor Documentation

pdf1d_gaussian_builder::pdf1d_gaussian_builder (  ) 

Dflt ctor.

Definition at line 19 of file pdf1d_gaussian_builder.cxx.

pdf1d_gaussian_builder::~pdf1d_gaussian_builder (  )  [virtual]

Destructor.

Definition at line 28 of file pdf1d_gaussian_builder.cxx.


Member Function Documentation

pdf1d_gaussian & pdf1d_gaussian_builder::gaussian ( pdf1d_pdf model  )  const [private]

Definition at line 34 of file pdf1d_gaussian_builder.cxx.

pdf1d_pdf * pdf1d_gaussian_builder::new_model (  )  const [virtual]

Create empty model.

Implements pdf1d_builder.

Definition at line 41 of file pdf1d_gaussian_builder.cxx.

vcl_string pdf1d_gaussian_builder::new_model_type (  )  const [virtual]

Name of the model class returned by new_model().

Implements pdf1d_builder.

Definition at line 46 of file pdf1d_gaussian_builder.cxx.

void pdf1d_gaussian_builder::set_min_var ( double  min_var  )  [virtual]

Define lower threshold on variance for built models.

Implements pdf1d_builder.

Definition at line 53 of file pdf1d_gaussian_builder.cxx.

double pdf1d_gaussian_builder::min_var (  )  const [virtual]

Get lower threshold on variance for built models.

Implements pdf1d_builder.

Definition at line 60 of file pdf1d_gaussian_builder.cxx.

void pdf1d_gaussian_builder::build_from_array ( pdf1d_pdf model,
const double *  data,
int  n 
) const [virtual]

Build gaussian from n elements in data[i].

Reimplemented from pdf1d_builder.

Definition at line 72 of file pdf1d_gaussian_builder.cxx.

void pdf1d_gaussian_builder::build ( pdf1d_pdf model,
double  mean 
) const [virtual]

Build default model with given mean.

Implements pdf1d_builder.

Definition at line 65 of file pdf1d_gaussian_builder.cxx.

void pdf1d_gaussian_builder::build ( pdf1d_pdf model,
mbl_data_wrapper< double > &  data 
) const [virtual]

Build model from data.

Implements pdf1d_builder.

Definition at line 89 of file pdf1d_gaussian_builder.cxx.

void pdf1d_gaussian_builder::weighted_build ( pdf1d_pdf model,
mbl_data_wrapper< double > &  data,
const vcl_vector< double > &  wts 
) const [virtual]

Build model from weighted data.

Implements pdf1d_builder.

Definition at line 128 of file pdf1d_gaussian_builder.cxx.

short pdf1d_gaussian_builder::version_no (  )  const

Version number for I/O.

Reimplemented from pdf1d_builder.

Definition at line 191 of file pdf1d_gaussian_builder.cxx.

vcl_string pdf1d_gaussian_builder::is_a (  )  const [virtual]

Name of the class.

Reimplemented from pdf1d_builder.

Definition at line 173 of file pdf1d_gaussian_builder.cxx.

bool pdf1d_gaussian_builder::is_class ( vcl_string const &  s  )  const [virtual]

Does the name of the class match the argument?.

Reimplemented from pdf1d_builder.

Definition at line 182 of file pdf1d_gaussian_builder.cxx.

pdf1d_builder * pdf1d_gaussian_builder::clone (  )  const [virtual]

Create a copy on the heap and return base class pointer.

Implements pdf1d_builder.

Definition at line 200 of file pdf1d_gaussian_builder.cxx.

void pdf1d_gaussian_builder::print_summary ( vcl_ostream &  os  )  const [virtual]

Print class to os.

Implements pdf1d_builder.

Definition at line 209 of file pdf1d_gaussian_builder.cxx.

void pdf1d_gaussian_builder::b_write ( vsl_b_ostream bfs  )  const [virtual]

Save class to binary file stream.

Implements pdf1d_builder.

Definition at line 218 of file pdf1d_gaussian_builder.cxx.

void pdf1d_gaussian_builder::b_read ( vsl_b_istream bfs  )  [virtual]

Load class from binary file stream.

Implements pdf1d_builder.

Definition at line 228 of file pdf1d_gaussian_builder.cxx.


Member Data Documentation

Definition at line 20 of file pdf1d_gaussian_builder.h.


The documentation for this class was generated from the following files:

Generated on Sun Nov 22 06:23:40 2009 for contrib/mul/pdf1d by  doxygen 1.5.5