Logo ROOT   6.13/01
Reference Guide
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ROOT::Math::TDataPoint< K, _val_type > Class Template Reference

template<unsigned int K, typename _val_type = float>
class ROOT::Math::TDataPoint< K, _val_type >

Definition at line 27 of file TDataPoint.h.

Public Types

enum  { kDimension = K }
 
typedef _val_type value_type
 

Public Member Functions

 TDataPoint ()
 
template<typename _coord_typ >
 TDataPoint (const _coord_typ *pData, _val_type fWeight=1)
 
template<typename _coord_type >
 TDataPoint (const _coord_type *pData, _val_type fWeight)
 
template<typename _val >
value_type Distance (const TDataPoint< K, _val > &rPoint) const
 
template<typename _val >
_val_type Distance (const TDataPoint< K, _val > &rPoint) const
 
value_type GetCoordinate (unsigned int iAxis) const
 
value_type GetWeight () const
 
Bool_t Less (TDataPoint &rPoint, unsigned int iAxis) const
 
void SetCoordinate (unsigned int iAxis, _val_type fValue)
 
void SetWeight (float fWeight)
 

Static Public Member Functions

static UInt_t Dimension ()
 

Private Attributes

value_type m_fWeight
 
value_type m_vCoordinates [K]
 

#include <Math/TDataPoint.h>

Member Typedef Documentation

◆ value_type

template<unsigned int K, typename _val_type = float>
typedef _val_type ROOT::Math::TDataPoint< K, _val_type >::value_type

Definition at line 30 of file TDataPoint.h.

Member Enumeration Documentation

◆ anonymous enum

template<unsigned int K, typename _val_type = float>
anonymous enum
Enumerator
kDimension 

Definition at line 31 of file TDataPoint.h.

Constructor & Destructor Documentation

◆ TDataPoint() [1/3]

template<unsigned int K, typename _val_type >
ROOT::Math::TDataPoint< K, _val_type >::TDataPoint ( )

Definition at line 46 of file TDataPoint.icc.

◆ TDataPoint() [2/3]

template<unsigned int K, typename _val_type = float>
template<typename _coord_typ >
ROOT::Math::TDataPoint< K, _val_type >::TDataPoint ( const _coord_typ *  pData,
_val_type  fWeight = 1 
)

◆ TDataPoint() [3/3]

template<unsigned int K, typename _val_type = float>
template<typename _coord_type >
ROOT::Math::TDataPoint< K, _val_type >::TDataPoint ( const _coord_type *  pData,
_val_type  fWeight 
)

Definition at line 64 of file TDataPoint.icc.

Member Function Documentation

◆ Dimension()

template<unsigned int K, typename _val_type = float>
static UInt_t ROOT::Math::TDataPoint< K, _val_type >::Dimension ( )
inlinestatic

Definition at line 34 of file TDataPoint.h.

◆ Distance() [1/2]

template<unsigned int K, typename _val_type = float>
template<typename _val >
value_type ROOT::Math::TDataPoint< K, _val_type >::Distance ( const TDataPoint< K, _val > &  rPoint) const

◆ Distance() [2/2]

template<unsigned int K, typename _val_type = float>
template<typename _val >
_val_type ROOT::Math::TDataPoint< K, _val_type >::Distance ( const TDataPoint< K, _val > &  rPoint) const

Definition at line 82 of file TDataPoint.icc.

◆ GetCoordinate()

template<unsigned int K, typename _val_type >
_val_type ROOT::Math::TDataPoint< K, _val_type >::GetCoordinate ( unsigned int  iAxis) const
inline

Definition at line 100 of file TDataPoint.icc.

◆ GetWeight()

template<unsigned int K, typename _val_type = float>
value_type ROOT::Math::TDataPoint< K, _val_type >::GetWeight ( ) const
inline

Definition at line 46 of file TDataPoint.h.

◆ Less()

template<unsigned int K, typename _val_type >
Bool_t ROOT::Math::TDataPoint< K, _val_type >::Less ( TDataPoint< K, _val_type > &  rPoint,
unsigned int  iAxis 
) const
inline

Definition at line 125 of file TDataPoint.icc.

◆ SetCoordinate()

template<unsigned int K, typename _val_type >
void ROOT::Math::TDataPoint< K, _val_type >::SetCoordinate ( unsigned int  iAxis,
_val_type  fValue 
)
inline

Definition at line 112 of file TDataPoint.icc.

◆ SetWeight()

template<unsigned int K, typename _val_type = float>
void ROOT::Math::TDataPoint< K, _val_type >::SetWeight ( float  fWeight)
inline

Definition at line 49 of file TDataPoint.h.

Member Data Documentation

◆ m_fWeight

template<unsigned int K, typename _val_type = float>
value_type ROOT::Math::TDataPoint< K, _val_type >::m_fWeight
private

Definition at line 53 of file TDataPoint.h.

◆ m_vCoordinates

template<unsigned int K, typename _val_type = float>
value_type ROOT::Math::TDataPoint< K, _val_type >::m_vCoordinates[K]
private

Definition at line 52 of file TDataPoint.h.


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