Histogram Class Reference

#include <histogram.h>

List of all members.

Public Member Functions

void setup (std::vector< float > &x)
void build (std::vector< float > &, const float, const float)
float min () const
float max () const
float amax () const
float mean () const
float stddev () const
float operator() (const float x) const
float operator() (const float x0, const float x1) const

Protected Attributes

std::vector< int > h
long nbin
int hmax
float minv
float maxv
float amaxv
float meanv
float stddevv


Detailed Description

Definition at line 28 of file histogram.h.


Member Function Documentation

float Histogram::amax (  )  const [inline]

Definition at line 39 of file histogram.h.

References amaxv.

Referenced by HistogramWidget::set().

void Histogram::build ( std::vector< float > &  ,
const   float,
const   float 
)

Referenced by HistogramWidget::set().

float Histogram::max (  )  const [inline]

Definition at line 38 of file histogram.h.

References maxv.

Referenced by HistogramWidget::set().

float Histogram::mean (  )  const [inline]

Definition at line 40 of file histogram.h.

References meanv.

Referenced by HistogramWidget::setComboBoxes().

float Histogram::min (  )  const [inline]

Definition at line 37 of file histogram.h.

References minv.

float Histogram::operator() ( const float  x0,
const float  x1 
) const

Definition at line 113 of file histogram.cpp.

References h, hmax, and nbin.

float Histogram::operator() ( const float  x  )  const

Definition at line 92 of file histogram.cpp.

References h, hmax, and nbin.

void Histogram::setup ( std::vector< float > &  x  ) 

Referenced by HistogramWidget::set().

float Histogram::stddev (  )  const [inline]

Definition at line 41 of file histogram.h.

References stddevv.

Referenced by HistogramWidget::setComboBoxes().


Member Data Documentation

float Histogram::amaxv [protected]

Definition at line 55 of file histogram.h.

Referenced by amax().

std::vector<int> Histogram::h [protected]

Definition at line 48 of file histogram.h.

Referenced by operator()().

int Histogram::hmax [protected]

Definition at line 50 of file histogram.h.

Referenced by operator()().

float Histogram::maxv [protected]

Definition at line 54 of file histogram.h.

Referenced by max().

float Histogram::meanv [protected]

Definition at line 56 of file histogram.h.

Referenced by mean().

float Histogram::minv [protected]

Definition at line 53 of file histogram.h.

Referenced by min().

long Histogram::nbin [protected]

Definition at line 49 of file histogram.h.

Referenced by operator()().

float Histogram::stddevv [protected]

Definition at line 57 of file histogram.h.

Referenced by stddev().


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 15:32:59 2009 for Skyviewer by  doxygen 1.4.7