casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::PlotHistogramData Class Reference

Specialized subclass of PlotPointData that creates histogram data from single point data. More...

#include <PlotData.h>

Inheritance diagram for casa::PlotHistogramData:
casa::PlotPointData casa::PlotData

List of all members.

Public Member Functions

 PlotHistogramData (PlotSingleDataPtr data, unsigned int numBins)
 Constructor which takes data and number of bins.
virtual ~PlotHistogramData ()
 Destructor.
virtual bool isValid () const
 Implements PlotData::isValid().
virtual bool willDeleteData () const
 Implements PlotData::willDeleteData().
virtual void setDeleteData (bool del=true)
 Implements PlotData::setDeleteData().
virtual unsigned int size () const
 Implements PlotPointData::size().
virtual double xAt (unsigned int i) const
 Implements PlotPointData::xAt().
virtual double yAt (unsigned int i) const
 Implements PlotPointData::yAt().
virtual bool minsMaxes (double &xMin, double &xMax, double &yMin, double &yMax)
 Implements PlotPointData::minsMaxes().
virtual void recalculateBins (unsigned int numBins)
 Recalculates the histogram data into the given number of bins.
virtual unsigned int numBins () const
 Returns the current number of histogram bins.
virtual prange_t rangeAt (unsigned int i) const
 Returns the range at the given index.

Private Attributes

PlotSingleDataPtr m_data
vector< unsigned int > m_bins
vector< prange_tm_ranges
unsigned int m_max

Detailed Description

Specialized subclass of PlotPointData that creates histogram data from single point data.

A histogram divides up the data into a number of "bins" and then counts the number of data that falls into each bin. This class can act as both an interface for specializations or a concrete subclass of PlotPointData in itself.

Definition at line 507 of file PlotData.h.


Constructor & Destructor Documentation

casa::PlotHistogramData::PlotHistogramData ( PlotSingleDataPtr  data,
unsigned int  numBins 
)

Constructor which takes data and number of bins.

Destructor.


Member Function Documentation

virtual bool casa::PlotHistogramData::isValid ( ) const [virtual]

Implements PlotData::isValid().

Implements casa::PlotData.

virtual bool casa::PlotHistogramData::minsMaxes ( double &  xMin,
double &  xMax,
double &  yMin,
double &  yMax 
) [virtual]
virtual unsigned int casa::PlotHistogramData::numBins ( ) const [virtual]

Returns the current number of histogram bins.

virtual prange_t casa::PlotHistogramData::rangeAt ( unsigned int  i) const [virtual]

Returns the range at the given index.

virtual void casa::PlotHistogramData::recalculateBins ( unsigned int  numBins) [virtual]

Recalculates the histogram data into the given number of bins.

virtual void casa::PlotHistogramData::setDeleteData ( bool  del = true) [virtual]

Implements PlotData::setDeleteData().

Implements casa::PlotData.

virtual unsigned int casa::PlotHistogramData::size ( ) const [inline, virtual]

Implements PlotPointData::size().

Implements casa::PlotPointData.

Definition at line 527 of file PlotData.h.

virtual bool casa::PlotHistogramData::willDeleteData ( ) const [virtual]

Implements PlotData::willDeleteData().

Implements casa::PlotData.

virtual double casa::PlotHistogramData::xAt ( unsigned int  i) const [virtual]

Implements PlotPointData::xAt().

Implements casa::PlotPointData.

virtual double casa::PlotHistogramData::yAt ( unsigned int  i) const [virtual]

Implements PlotPointData::yAt().

Implements casa::PlotPointData.


Member Data Documentation

vector<unsigned int> casa::PlotHistogramData::m_bins [private]

Definition at line 551 of file PlotData.h.

PlotSingleDataPtr casa::PlotHistogramData::m_data [private]

Definition at line 550 of file PlotData.h.

unsigned int casa::PlotHistogramData::m_max [private]

Definition at line 553 of file PlotData.h.

Definition at line 552 of file PlotData.h.


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