13#ifndef ROOT_Math_TDataPoint
14#define ROOT_Math_TDataPoint
26template<
unsigned int K,
typename _val_type =
float>
37 template<
typename _coord_typ>
38 TDataPoint(
const _coord_typ* pData,_val_type fWeight = 1);
42 template<
typename _val>
Bool_t Less(TDataPoint &rPoint, unsigned int iAxis) const
static UInt_t Dimension()
value_type Distance(const TDataPoint< K, _val > &rPoint) const
TDataPoint(const _coord_typ *pData, _val_type fWeight=1)
void SetCoordinate(unsigned int iAxis, _val_type fValue)
void SetWeight(float fWeight)
value_type m_vCoordinates[K]
value_type GetCoordinate(unsigned int iAxis) const
value_type GetWeight() const
Namespace for new Math classes and functions.
static const uint32_t K[64]
TDataPoint< 3, Float_t > TDataPoint3F
TDataPoint< 1, Float_t > TDataPoint1F
TDataPoint< 2, Float_t > TDataPoint2F
TDataPoint< 1, Double_t > TDataPoint1D
TDataPoint< 3, Double_t > TDataPoint3D
TDataPoint< 2, Double_t > TDataPoint2D
Namespace for new ROOT classes and functions.