#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. | |
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. |
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.
int LWH::DataPoint::dimension | ( | ) | const [inline] |
Get the dimension of the IDataPoint, i.e.
the number of coordinates the point has.
Definition at line 68 of file DataPoint.h.
References m.
IMeasurement* LWH::DataPoint::coordinate | ( | int | coord | ) | [inline] |
Get the IMeasurement for a given coordinate.
coord | The coordinate. |
Definition at line 77 of file DataPoint.h.
References m.
Referenced by DataPoint().
const IMeasurement* LWH::DataPoint::coordinate | ( | int | coord | ) | const [inline] |
Get the IMeasurement for a given coordinate.
coord | The coordinate. |
Definition at line 86 of file DataPoint.h.
References m.