Public Member Functions | Private Member Functions | Private Attributes
pdf1d_flat_builder Class Reference

Class to build pdf1d_flat objects. Sets to non-zero over range of data. More...

#include <pdf1d_flat_builder.h>

Inheritance diagram for pdf1d_flat_builder:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 pdf1d_flat_builder ()
 Dflt ctor.
virtual ~pdf1d_flat_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 flat 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_flatflat (pdf1d_pdf &model) const

Private Attributes

double min_var_

Detailed Description

Class to build pdf1d_flat objects. Sets to non-zero over range of data.

Definition at line 18 of file pdf1d_flat_builder.h.


Constructor & Destructor Documentation

pdf1d_flat_builder::pdf1d_flat_builder ( )

Dflt ctor.

Definition at line 20 of file pdf1d_flat_builder.cxx.

pdf1d_flat_builder::~pdf1d_flat_builder ( ) [virtual]

Destructor.

Definition at line 29 of file pdf1d_flat_builder.cxx.


Member Function Documentation

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

Load class from binary file stream.

Implements pdf1d_builder.

Definition at line 211 of file pdf1d_flat_builder.cxx.

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

Save class to binary file stream.

Implements pdf1d_builder.

Definition at line 201 of file pdf1d_flat_builder.cxx.

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

Build default model with given mean.

Implements pdf1d_builder.

Definition at line 66 of file pdf1d_flat_builder.cxx.

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

Build model from data.

Implements pdf1d_builder.

Definition at line 102 of file pdf1d_flat_builder.cxx.

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

Build flat from n elements in data[i].

Reimplemented from pdf1d_builder.

Definition at line 73 of file pdf1d_flat_builder.cxx.

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

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

Implements pdf1d_builder.

Definition at line 183 of file pdf1d_flat_builder.cxx.

pdf1d_flat & pdf1d_flat_builder::flat ( pdf1d_pdf model) const [private]

Definition at line 35 of file pdf1d_flat_builder.cxx.

vcl_string pdf1d_flat_builder::is_a ( ) const [virtual]

Name of the class.

Reimplemented from pdf1d_builder.

Definition at line 156 of file pdf1d_flat_builder.cxx.

bool pdf1d_flat_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 165 of file pdf1d_flat_builder.cxx.

double pdf1d_flat_builder::min_var ( ) const [virtual]

Get lower threshold on variance for built models.

Implements pdf1d_builder.

Definition at line 61 of file pdf1d_flat_builder.cxx.

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

Create empty model.

Implements pdf1d_builder.

Definition at line 42 of file pdf1d_flat_builder.cxx.

vcl_string pdf1d_flat_builder::new_model_type ( ) const [virtual]

Name of the model class returned by new_model().

Implements pdf1d_builder.

Definition at line 47 of file pdf1d_flat_builder.cxx.

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

Print class to os.

Implements pdf1d_builder.

Definition at line 192 of file pdf1d_flat_builder.cxx.

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

Define lower threshold on variance for built models.

Implements pdf1d_builder.

Definition at line 54 of file pdf1d_flat_builder.cxx.

short pdf1d_flat_builder::version_no ( ) const

Version number for I/O.

Reimplemented from pdf1d_builder.

Definition at line 174 of file pdf1d_flat_builder.cxx.

void pdf1d_flat_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 145 of file pdf1d_flat_builder.cxx.


Member Data Documentation

double pdf1d_flat_builder::min_var_ [private]

Definition at line 20 of file pdf1d_flat_builder.h.


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