ROOT  6.06/09
Reference Guide
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 _val >
value_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)
 
template<typename _coord_type >
 TDataPoint (const _coord_type *pData, _val_type fWeight)
 
template<typename _val >
_val_type Distance (const TDataPoint< K, _val > &rPoint) const
 

Static Public Member Functions

static UInt_t Dimension ()
 

Private Attributes

value_type m_vCoordinates [K]
 
value_type m_fWeight
 

#include <Math/TDataPoint.h>

Member Typedef Documentation

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

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

Definition at line 31 of file TDataPoint.h.

Constructor & Destructor Documentation

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

Definition at line 39 of file TDataPoint.icc.

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 
)
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 57 of file TDataPoint.icc.

Member Function Documentation

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.

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
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 75 of file TDataPoint.icc.

template<unsigned int K, typename _val_type >
_val_type ROOT::Math::TDataPoint< K, _val_type >::GetCoordinate ( unsigned int  iAxis) const
inline
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.

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 118 of file TDataPoint.icc.

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 105 of file TDataPoint.icc.

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

template<unsigned int K, typename _val_type = float>
value_type ROOT::Math::TDataPoint< K, _val_type >::m_fWeight
private
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.

Referenced by ROOT::Math::TDataPoint< K, _val_type >::TDataPoint().


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