casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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

Public Member Functions

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

Private Attributes

PlotSingleDataPtr m_data
 
std::vector< unsigned int > m_bins
 
std::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 512 of file PlotData.h.

Constructor & Destructor Documentation

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

Constructor which takes data and number of bins.

virtual casa::PlotHistogramData::~PlotHistogramData ( )
virtual

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.

Referenced by size().

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
inlinevirtual

Implements PlotPointData::size().

Implements casa::PlotPointData.

Definition at line 532 of file PlotData.h.

References numBins().

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

std::vector<unsigned int> casa::PlotHistogramData::m_bins
private

Definition at line 556 of file PlotData.h.

PlotSingleDataPtr casa::PlotHistogramData::m_data
private

Definition at line 555 of file PlotData.h.

unsigned int casa::PlotHistogramData::m_max
private

Definition at line 558 of file PlotData.h.

std::vector<prange_t> casa::PlotHistogramData::m_ranges
private

Definition at line 557 of file PlotData.h.


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