BIE::OneBin Class Reference

A distribution consisting of a single bin. More...

#include <OneBin.h>

Inheritance diagram for BIE::OneBin:
Collaboration diagram for BIE::OneBin:

List of all members.

Public Member Functions

 OneBin ()
 Constructor (single bin with nothing in it).
 ~OneBin ()
 Destructor.
bool AccumulateData (double x, State &z)
 Add data with weight.
bool AccumulateData (double x, RecordBuffer *datapoint)
 Add data with weight.
double PDF (State &)
 Return the partial distribution function value for a State.
double logPDF (State &)
 Return the log of partial distribution function value for a State.
double CDF (State &)
 Return the cumulative distribution function value for a State.
vector< double > lower (void)
 Return the lower limit vector.
vector< double > upper (void)
 Return the upper limit vector.
vector< double > Mean (void)
 Return the mean of the distribution (vector).
vector< double > StdDev (void)
 Return the standard distribution about the mean (vector).
vector< double > Moments (int i)
 Return the ith moment of distribution (vector).
vector< double > Sample (void)
 Sample the distribution.
void ComputeDistribution (void)
 Compute the statistics for this distribution.
OneBinNew ()
 Factory constructor for cloning new instances.
int numberData ()
 Number of datums in the bin.

Friends

class boost::serialization::access


Detailed Description

A distribution consisting of a single bin.

This is useful for testing purposes because it is so simple and fast. It is not expected that this class will be used for any real problems.


Member Function Documentation

bool BIE::OneBin::AccumulateData ( double  x,
State z 
) [inline]

Add data with weight.

Parameters:
x to the bin from State vector
z 

bool BIE::OneBin::AccumulateData ( double  x,
RecordBuffer datapoint 
) [inline, virtual]

Add data with weight.

Parameters:
x to the bin from a RecordBuffer
datapoint 

Reimplemented from BIE::SampleDistribution.


The documentation for this class was generated from the following file:
  • /home/weinberg/src/BIE/include/OneBin.h

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:12 2010 by doxygen