yat  0.16pre
Public Member Functions | List of all members
theplu::yat::classifier::IGP< Distance > Class Template Reference

Class for In Group Proportions (IGP) More...

#include <yat/classifier/IGP.h>

Public Member Functions

 IGP (const MatrixLookup &, const Target &)
 
 IGP (const MatrixLookup &, const Target &, const Distance &)
 
virtual ~IGP ()
 
const utility::Vectorscore (void) const
 

Detailed Description

template<typename Distance>
class theplu::yat::classifier::IGP< Distance >

Class for In Group Proportions (IGP)

IGP is defined to be the proportion of samples in a group whose nearest neighbours are also in the same group.

See also
Kapp and Tibshirani, Biostatistics (2006).

Distance should model concept Distance (but support for weighted iterators is not required).

Note
Distance must be symmetric, i.e., Distance(x,y) == Distance(y,x).

Constructor & Destructor Documentation

template<typename Distance >
theplu::yat::classifier::IGP< Distance >::IGP ( const MatrixLookup data,
const Target target 
)

Constructor taking the training data and the target vector and as input.

template<typename Distance >
theplu::yat::classifier::IGP< Distance >::IGP ( const MatrixLookup data,
const Target target,
const Distance &  dist 
)

Constructor taking the training data, the target vector and the distance measure as input.

template<typename Distance >
theplu::yat::classifier::IGP< Distance >::~IGP ( )
virtual

Destrucutor

Member Function Documentation

template<typename Distance >
const utility::Vector & theplu::yat::classifier::IGP< Distance >::score ( void  ) const
Returns
the IGP score for each class as elements in a vector.

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

Generated on Wed May 23 2018 02:32:35 for yat by  doxygen 1.8.11