ConfusionMatrix Class Reference

Inheritance diagram for ConfusionMatrix:

Score Score List of all members.

Public Member Functions

 ConfusionMatrix (int num_thresholds=1, int num_to_print=3)
virtual ~ConfusionMatrix ()
void addAdditionalThreshold (float t)
 By default, we will print only the best "N", but you can ask for performance at any specific threshold here.
float getBestHeidke () const
 For now, this method works only if you call print() first.
virtual void print ()
void printAtThreshold (int i)
 ConfusionMatrix (const std::string &oDir, int num_thresholds=3)
virtual std::string getFileName () const
virtual ~ConfusionMatrix ()
virtual void write (std::fstream &fp)
void updateScores (float target, float actual, float thresh, int i)
void updateScores (bool is_precip, float actual, float thresh, int i)
float safelog (float in)
void update (float actual, float target)
void update (bool is_precip, float conf)
void update (const Score &other)
double pod (size_t i) const
double far (size_t i) const
double csi (size_t i) const
double misclass (size_t i) const
double heidke (size_t i) const
double errorCriterion (size_t i) const
 an error criterion usable for NN stopping, etc.
double heidkeErrorCriterion (size_t i) const
void clear ()
void writeScore (const PolarGrid &input, const PolarGrid &output)
void writeScore ()

Protected Attributes

const int RES
std::vector< int > hit
std::vector< int > hit
std::vector< int > miss
std::vector< int > miss
std::vector< int > fa
std::vector< int > fa
std::vector< int > na
std::vector< int > na
float entropy
int N
std::string outputDir
bool cumulative

Constructor & Destructor Documentation

ConfusionMatrix::ConfusionMatrix ( int  num_thresholds = 1,
int  num_to_print = 3 
) [inline]

virtual ConfusionMatrix::~ConfusionMatrix (  )  [inline, virtual]

ConfusionMatrix::ConfusionMatrix ( const std::string &  oDir,
int  num_thresholds = 3 
) [inline]

virtual ConfusionMatrix::~ConfusionMatrix (  )  [inline, virtual]


Member Function Documentation

void ConfusionMatrix::addAdditionalThreshold ( float  t  )  [inline]

By default, we will print only the best "N", but you can ask for performance at any specific threshold here.

void Score::clear (  )  [inline, inherited]

double Score::csi ( size_t  i  )  const [inline, inherited]

double Score::errorCriterion ( size_t  i  )  const [inline, inherited]

an error criterion usable for NN stopping, etc.

returns a number in the range 0 to 1 with 0=perfect. This number is used by proto_train.bat to devise a stopping criterion.

double Score::far ( size_t  i  )  const [inline, inherited]

float ConfusionMatrix::getBestHeidke (  )  const [inline]

For now, this method works only if you call print() first.

virtual std::string ConfusionMatrix::getFileName (  )  const [inline, virtual]

Implements Score.

double Score::heidke ( size_t  i  )  const [inline, inherited]

double Score::heidkeErrorCriterion ( size_t  i  )  const [inline, inherited]

double Score::misclass ( size_t  i  )  const [inline, inherited]

double Score::pod ( size_t  i  )  const [inline, inherited]

virtual void ConfusionMatrix::print (  )  [inline, virtual]

Implements Score.

void ConfusionMatrix::printAtThreshold ( int  i  )  [inline]

float Score::safelog ( float  in  )  [inline, inherited]

void Score::update ( const Score other  )  [inline, inherited]

void Score::update ( bool  is_precip,
float  conf 
) [inline, inherited]

void Score::update ( float  actual,
float  target 
) [inline, inherited]

void Score::updateScores ( bool  is_precip,
float  actual,
float  thresh,
int  i 
) [inline, inherited]

void Score::updateScores ( float  target,
float  actual,
float  thresh,
int  i 
) [inline, inherited]

virtual void ConfusionMatrix::write ( std::fstream &  fp  )  [inline, virtual]

Implements Score.

void Score::writeScore (  )  [inline, inherited]

void Score::writeScore ( const PolarGrid &  input,
const PolarGrid &  output 
) [inline, inherited]


Member Data Documentation

bool Score::cumulative [protected, inherited]

float Score::entropy [protected, inherited]

std::vector<int> Score::fa [protected, inherited]

std::vector<int> Score::fa [protected, inherited]

std::vector<int> Score::hit [protected, inherited]

std::vector<int> Score::hit [protected, inherited]

std::vector<int> Score::miss [protected, inherited]

std::vector<int> Score::miss [protected, inherited]

int Score::N [protected, inherited]

std::vector<int> Score::na [protected, inherited]

std::vector<int> Score::na [protected, inherited]

std::string Score::outputDir [protected, inherited]

const int Score::RES [protected, inherited]


Generated on Fri May 4 13:40:21 2012 for WDSS-IIw2algs by  doxygen 1.4.7