![]() |
pktools
2.6.3
Processing Kernel for geospatial data
|
Public Member Functions | |
ConfusionMatrix (short nclass) | |
ConfusionMatrix (const std::vector< std::string > &classNames) | |
ConfusionMatrix (const ConfusionMatrix &cm) | |
ConfusionMatrix & | operator= (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 |
ConfusionMatrix & | operator*= (double weight) |
ConfusionMatrix | operator* (double weight) |
ConfusionMatrix & | operator+= (const ConfusionMatrix &cm) |
ConfusionMatrix | operator+ (const ConfusionMatrix &cm) |
void | sortClassNames () |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ConfusionMatrix &cm) |
Definition at line 28 of file ConfusionMatrix.h.