casa
5.7.0-16
|
Specialized subclass of PlotPointData that creates histogram data from single point data. More...
#include <PlotData.h>
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_t > | m_ranges |
unsigned int | m_max |
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.
casa::PlotHistogramData::PlotHistogramData | ( | PlotSingleDataPtr | data, |
unsigned int | numBins | ||
) |
Constructor which takes data and number of bins.
|
virtual |
Destructor.
|
virtual |
Implements PlotData::isValid().
Implements casa::PlotData.
|
virtual |
Implements PlotPointData::minsMaxes().
Implements casa::PlotPointData.
|
virtual |
Returns the current number of histogram bins.
Referenced by size().
|
virtual |
Returns the range at the given index.
|
virtual |
Recalculates the histogram data into the given number of bins.
|
virtual |
Implements PlotData::setDeleteData().
Implements casa::PlotData.
|
inlinevirtual |
Implements PlotPointData::size().
Implements casa::PlotPointData.
Definition at line 532 of file PlotData.h.
References numBins().
|
virtual |
Implements PlotData::willDeleteData().
Implements casa::PlotData.
|
virtual |
Implements PlotPointData::xAt().
Implements casa::PlotPointData.
|
virtual |
Implements PlotPointData::yAt().
Implements casa::PlotPointData.
|
private |
Definition at line 556 of file PlotData.h.
|
private |
Definition at line 555 of file PlotData.h.
|
private |
Definition at line 558 of file PlotData.h.
|
private |
Definition at line 557 of file PlotData.h.