pktools  2.6.7
Processing Kernel for geospatial data
Public Member Functions | Static Public Member Functions | Friends | List of all members
confusionmatrix::ConfusionMatrix Class Reference

Public Member Functions

 ConfusionMatrix (short nclass)
 ConfusionMatrix (const std::vector< std::string > &classNames)
 ConfusionMatrix (const ConfusionMatrix &cm)
ConfusionMatrixoperator= (const ConfusionMatrix &cm)
short size () const
void resize (short nclass)
void setClassNames (const std::vector< std::string > &classNames, bool doSort=false)
void pushBackClassName (const std::string &className, bool doSort=false)
void setResults (const Vector2d< double > &theResults)
void setResult (const std::string &theRef, const std::string &theClass, double theResult)
void incrementResult (const std::string &theRef, const std::string &theClass, double theIncrement)
void clearResults ()
double nReference (const std::string &theRef) const
double nReference () const
double nClassified (const std::string &theRef) const
int nClasses () const
std::string getClass (int iclass) const
int getClassIndex (std::string className) const
std::vector< std::string > getClassNames () const
double pa (const std::string &theClass, double *se95=NULL) const
double ua (const std::string &theClass, double *se95=NULL) const
double oa (double *se95=NULL) const
int pa_pct (const std::string &theClass, double *se95=NULL) const
int ua_pct (const std::string &theClass, double *se95=NULL) const
int oa_pct (double *se95=NULL) const
double kappa () const
ConfusionMatrixoperator*= (double weight)
ConfusionMatrix operator* (double weight)
ConfusionMatrixoperator+= (const ConfusionMatrix &cm)
ConfusionMatrix operator+ (const ConfusionMatrix &cm)
void sortClassNames ()
void reportSE95 (bool doReport)
void setFormat (const CM_FORMAT &theFormat)
void setFormat (const std::string theFormat)
CM_FORMAT getFormat () const

Static Public Member Functions

static const CM_FORMAT getFormat (const std::string theFormat)


std::ostream & operator<< (std::ostream &os, const ConfusionMatrix &cm)

Detailed Description

Definition at line 32 of file ConfusionMatrix.h.

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