yat  0.8.3pre
Public Member Functions
theplu::yat::classifier::InputRanker Class Reference

Class for ranking rows in a matrix, using a Score and a target vector. More...

#include <yat/classifier/InputRanker.h>

List of all members.

Public Member Functions

 InputRanker (const MatrixLookup &, const Target &, const statistics::Score &)
 InputRanker (const MatrixLookupWeighted &, const Target &, const statistics::Score &)
const std::vector< size_t > & id (void) const
const std::vector< size_t > & rank (void) const
double score (size_t rank) const

Detailed Description

Class for ranking rows in a matrix, using a Score and a target vector.


Constructor & Destructor Documentation

Constructor taking data, target, a Score object and vector defining what samples to use (default is to use all samples)

Constructor taking data, target, a Score object and vector defining what samples to use (default is to use all samples)


Member Function Documentation

const std::vector<size_t>& theplu::yat::classifier::InputRanker::id ( void  ) const

highest ranked gene is ranked as number zero

Returns:
id (index) of input ranked as number i
const std::vector<size_t>& theplu::yat::classifier::InputRanker::rank ( void  ) const

highest ranked gene is ranked as number zero

Returns:
rank for id (row) i
double theplu::yat::classifier::InputRanker::score ( size_t  rank) const
Parameters:
rankshould be a number in range [0,N-1] where N is number of inputs in data matrix. "score(0)" will gives the score of the feature that had the highest score.
Returns:
score of the input that has been been ranked as number rank.

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

Generated on Thu Dec 20 2012 03:12:58 for yat by  doxygen 1.8.0-20120409