BIE::Histogram1D Class Reference

This class is used to create one dimensional histograms. More...

#include <Histogram1D.h>

Inheritance diagram for BIE::Histogram1D:
Collaboration diagram for BIE::Histogram1D:

List of all members.

Public Member Functions

 Histogram1D (double low, double hi, double w, RecordType *type)
 The arguments specify the low bound of the histogram, the high bound of the histogram, the width of each bin, and the type of the single attribute respectively.
 Histogram1D (double low, double hi, double w, string dataname)
 The arguments specify the low bound of the histogram, the high bound of the histogram, the width of each bin, and the name of the single attribute respectively.
 ~Histogram1D ()
 Destructor: cleans up the allocations.
Histogram1DNew ()
 Cloning/Instance factory method.
double PDF (vector< double > &x)
 Return the value of the partial distribution function at.
double logPDF (vector< double > &x)
 Return log value of the partial distribution function at.
double CDF (vector< double > &x)
 Return cumulative distribution function at.
vector< double > lower (void)
 Return the low bin values.
vector< double > upper (void)
 Return the high bin values.
vector< double > Mean (void)
 Return the mean bin value.
vector< double > StdDev (void)
 Return the standard deviaton about the mean bin value.
vector< double > Moments (int i)
 Return ith moment of bin values.
vector< double > Sample (void)
 Sample the histogram.
void ComputeDistribution ()
 Compute the statistical summary.
int numberData ()
 Returns the number of in-bounds bins.
double getValue (int i)
 Returns the value of a particular bin.
vector< double > getLow (int i)
 Returns the lower boundary of a bin.
vector< double > getHigh (int i)
 Returns the upper boundary of a bin.
int getdim (int i)
 Returns the dimensionality of the histogram - always 1.

Friends

class boost::serialization::access


Detailed Description

This class is used to create one dimensional histograms.

Member Function Documentation

double BIE::Histogram1D::PDF ( vector< double > &  x  )  [inline]

Return the value of the partial distribution function at.

Parameters:
x 

double BIE::Histogram1D::logPDF ( vector< double > &  x  )  [inline]

Return log value of the partial distribution function at.

Parameters:
x 

double BIE::Histogram1D::CDF ( vector< double > &  x  )  [inline, virtual]

Return cumulative distribution function at.

Parameters:
x 

Reimplemented from BIE::BinnedDistribution.

Here is the call graph for this function:


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

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