LWH::DataPoint Class Reference

An DataPoint represents a binned histogram axis. More...

#include <DataPoint.h>

List of all members.

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< Measurementm
 The included measurements.


Detailed Description

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.


Member Function Documentation

int LWH::DataPoint::dimension (  )  const [inline]

Get the dimension of the IDataPoint, i.e.

the number of coordinates the point has.

Returns:
The dimension.

Definition at line 68 of file DataPoint.h.

References m.

IMeasurement* LWH::DataPoint::coordinate ( int  coord  )  [inline]

Get the IMeasurement for a given coordinate.

Parameters:
coord The coordinate.
Returns:
The corresponding IMeasurement.

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.

Parameters:
coord The coordinate.
Returns:
The corresponding IMeasurement.

Definition at line 86 of file DataPoint.h.

References m.


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

Generated on Thu Apr 29 12:42:56 2010 for ThePEG by  doxygen 1.5.5