SAGA API v9.10
Loading...
Searching...
No Matches
CSG_Classifier_Supervised Class Reference

#include <mat_tools.h>

Public Member Functions

 CSG_Classifier_Supervised (void)
virtual ~CSG_Classifier_Supervised (void)
void Create (int nFeatures)
void Destroy (void)
bool Load (const CSG_String &File)
bool Save (const CSG_String &File, const SG_Char *Feature_Info=NULL)
bool Train_Clr_Samples (void)
bool Train_Add_Sample (const CSG_String &Class_ID, const CSG_Vector &Features)
bool Train (bool bClr_Samples=false)
bool Add_Class (const CSG_String &Class_ID, const CSG_Vector &Mean, const CSG_Vector &Min, const CSG_Vector &Max, const CSG_Matrix &Cov)
CSG_String Print (void)
int Get_Feature_Count (void)
int Get_Class_Count (void)
const CSG_StringGet_Class_ID (int iClass)
double Get_Class_Mean (int iClass, int iFeature)
double Get_Class_Minimum (int iClass, int iFeature)
double Get_Class_Maximum (int iClass, int iFeature)
int Get_Class (const CSG_String &Class_ID)
bool Get_Class (const CSG_Vector &Features, int &Class, double &Quality, int Method)
void Set_Threshold_Distance (double Value)
double Get_Threshold_Distance (void)
void Set_Threshold_Angle (double Value)
double Get_Threshold_Angle (void)
void Set_Threshold_Probability (double Value)
double Get_Threshold_Probability (void)
void Set_Probability_Relative (bool Value)
bool Get_Probability_Relative (void)
void Set_WTA (int Method, bool bOn)
bool Get_WTA (int Method)

Static Public Member Functions

static CSG_String Get_Name_of_Method (int Method)
static CSG_String Get_Name_of_Quality (int Method)

Detailed Description

Definition at line 1237 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Classifier_Supervised()

CSG_Classifier_Supervised::CSG_Classifier_Supervised ( void )

◆ ~CSG_Classifier_Supervised()

CSG_Classifier_Supervised::~CSG_Classifier_Supervised ( void )
virtual

Definition at line 2406 of file mat_tools.cpp.

References Destroy().

Member Function Documentation

◆ Add_Class()

bool CSG_Classifier_Supervised::Add_Class ( const CSG_String & Class_ID,
const CSG_Vector & Mean,
const CSG_Vector & Min,
const CSG_Vector & Max,
const CSG_Matrix & Cov )

◆ Create()

void CSG_Classifier_Supervised::Create ( int nFeatures)

Definition at line 2412 of file mat_tools.cpp.

References Destroy().

◆ Destroy()

void CSG_Classifier_Supervised::Destroy ( void )

Definition at line 2423 of file mat_tools.cpp.

References SG_FREE_SAFE.

Referenced by Create(), Load(), and ~CSG_Classifier_Supervised().

◆ Get_Class() [1/2]

int CSG_Classifier_Supervised::Get_Class ( const CSG_String & Class_ID)

Definition at line 2796 of file mat_tools.cpp.

References Get_Class_Count(), and Get_Class_ID().

Referenced by Train_Add_Sample().

◆ Get_Class() [2/2]

◆ Get_Class_Count()

int CSG_Classifier_Supervised::Get_Class_Count ( void )
inline

Definition at line 1260 of file mat_tools.h.

Referenced by Get_Class().

◆ Get_Class_ID()

const CSG_String & CSG_Classifier_Supervised::Get_Class_ID ( int iClass)
inline

Definition at line 1262 of file mat_tools.h.

Referenced by Get_Class().

◆ Get_Class_Maximum()

double CSG_Classifier_Supervised::Get_Class_Maximum ( int iClass,
int iFeature )
inline

Definition at line 1265 of file mat_tools.h.

◆ Get_Class_Mean()

double CSG_Classifier_Supervised::Get_Class_Mean ( int iClass,
int iFeature )
inline

Definition at line 1263 of file mat_tools.h.

◆ Get_Class_Minimum()

double CSG_Classifier_Supervised::Get_Class_Minimum ( int iClass,
int iFeature )
inline

Definition at line 1264 of file mat_tools.h.

◆ Get_Feature_Count()

int CSG_Classifier_Supervised::Get_Feature_Count ( void )
inline

Definition at line 1258 of file mat_tools.h.

Referenced by Get_Class().

◆ Get_Name_of_Method()

◆ Get_Name_of_Quality()

◆ Get_Probability_Relative()

bool CSG_Classifier_Supervised::Get_Probability_Relative ( void )

Definition at line 2459 of file mat_tools.cpp.

◆ Get_Threshold_Angle()

double CSG_Classifier_Supervised::Get_Threshold_Angle ( void )

Definition at line 2451 of file mat_tools.cpp.

◆ Get_Threshold_Distance()

double CSG_Classifier_Supervised::Get_Threshold_Distance ( void )

Definition at line 2447 of file mat_tools.cpp.

◆ Get_Threshold_Probability()

double CSG_Classifier_Supervised::Get_Threshold_Probability ( void )

Definition at line 2455 of file mat_tools.cpp.

◆ Get_WTA()

bool CSG_Classifier_Supervised::Get_WTA ( int Method)

Definition at line 2470 of file mat_tools.cpp.

References SG_CLASSIFY_SUPERVISED_WTA.

◆ Load()

◆ Print()

CSG_String CSG_Classifier_Supervised::Print ( void )

Definition at line 2591 of file mat_tools.cpp.

References CSG_String::Format(), and SG_Get_String().

◆ Save()

bool CSG_Classifier_Supervised::Save ( const CSG_String & File,
const SG_Char * Feature_Info = NULL )

◆ Set_Probability_Relative()

void CSG_Classifier_Supervised::Set_Probability_Relative ( bool Value)

Definition at line 2458 of file mat_tools.cpp.

◆ Set_Threshold_Angle()

void CSG_Classifier_Supervised::Set_Threshold_Angle ( double Value)

Definition at line 2450 of file mat_tools.cpp.

◆ Set_Threshold_Distance()

void CSG_Classifier_Supervised::Set_Threshold_Distance ( double Value)

Definition at line 2446 of file mat_tools.cpp.

◆ Set_Threshold_Probability()

void CSG_Classifier_Supervised::Set_Threshold_Probability ( double Value)

Definition at line 2454 of file mat_tools.cpp.

◆ Set_WTA()

void CSG_Classifier_Supervised::Set_WTA ( int Method,
bool bOn )

Definition at line 2462 of file mat_tools.cpp.

References SG_CLASSIFY_SUPERVISED_WTA.

◆ Train()

bool CSG_Classifier_Supervised::Train ( bool bClr_Samples = false)

Definition at line 2703 of file mat_tools.cpp.

References Train(), and Train_Clr_Samples().

Referenced by Train().

◆ Train_Add_Sample()

bool CSG_Classifier_Supervised::Train_Add_Sample ( const CSG_String & Class_ID,
const CSG_Vector & Features )

Definition at line 2675 of file mat_tools.cpp.

References Get_Class(), CSG_Vector::Get_N(), and SG_Realloc().

◆ Train_Clr_Samples()

bool CSG_Classifier_Supervised::Train_Clr_Samples ( void )

Definition at line 2664 of file mat_tools.cpp.

Referenced by Train().


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