An DataPoint represents a binned histogram axis. More...
#include <DataPoint.h>
Public Member Functions | |
DataPoint (int dim=2) | |
Construct a data point with a given number of dimensions. | |
DataPoint (const DataPoint &d) | |
Copy constructor. | |
DataPoint (const IDataPoint &id) | |
Copy from any IDataPoint. | |
DataPoint & | operator= (const DataPoint &)=default |
Default assignment operator (to avoid compiler warnings). | |
virtual | ~DataPoint () |
Destructor. | |
int | dimension () const |
Get the dimension of the IDataPoint, i.e. | |
IMeasurement * | coordinate (int coord) |
Get the IMeasurement for a given coordinate. | |
const IMeasurement * | coordinate (int coord) const |
Get the IMeasurement for a given coordinate. | |
Private Attributes | |
std::vector< Measurement > | m |
The included measurements. | |
An DataPoint represents a binned histogram axis.
A 1D Histogram would have one DataPoint representing the X axis, while a 2D Histogram would have two axes representing the X and Y DataPoint.
Definition at line 31 of file DataPoint.h.
|
inline |
Construct a data point with a given number of dimensions.
Definition at line 38 of file DataPoint.h.
|
inline |
Copy constructor.
Definition at line 44 of file DataPoint.h.
|
inline |
Copy from any IDataPoint.
Definition at line 50 of file DataPoint.h.
References coordinate(), and m.
|
inlinevirtual |
Destructor.
Definition at line 66 of file DataPoint.h.
|
inline |
Get the IMeasurement for a given coordinate.
coord | The coordinate. |
Definition at line 82 of file DataPoint.h.
References m.
Referenced by DataPoint().
|
inline |
Get the IMeasurement for a given coordinate.
coord | The coordinate. |
Definition at line 91 of file DataPoint.h.
References m.
|
inline |
Get the dimension of the IDataPoint, i.e.
the number of coordinates the point has.
Definition at line 73 of file DataPoint.h.
References m.
|
private |
The included measurements.
Definition at line 100 of file DataPoint.h.
Referenced by coordinate(), DataPoint(), and dimension().