SAGA API
v9.6
|
#include <mat_tools.h>
Public Member Functions | |
CSG_Unique_String_Statistics (bool bWeights=false) | |
virtual | ~CSG_Unique_String_Statistics (void) |
virtual void | Create (bool bWeights=false) |
void | operator+= (const CSG_String &Value) |
void | Add_Value (const CSG_String &Value, double Weight=1.) |
const SG_Char * | Get_Value (int Index) const |
int | Get_Class_Index (const CSG_String &Value) const |
bool | Get_Class (int Index, CSG_String &Value, int &Count) const |
bool | Get_Majority (CSG_String &Value) const |
bool | Get_Majority (CSG_String &Value, int &Count) const |
bool | Get_Minority (CSG_String &Value) const |
bool | Get_Minority (CSG_String &Value, int &Count) const |
Public Member Functions inherited from CSG_Unique_Value_Statistics | |
CSG_Unique_Value_Statistics (void) | |
virtual | ~CSG_Unique_Value_Statistics (void) |
int | Get_Count (void) const |
int | Get_Count (int i) const |
double | Get_Weight (int i) const |
virtual int | Get_Majority (bool bWeighted=false) const |
virtual int | Get_Minority (bool bWeighted=false) const |
Additional Inherited Members | |
Protected Attributes inherited from CSG_Unique_Value_Statistics | |
bool | m_bWeights {false} |
CSG_Array_Int | m_Count |
CSG_Vector | m_Weight |
Definition at line 871 of file mat_tools.h.
|
inline |
Definition at line 874 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Create().
|
inlinevirtual |
Definition at line 875 of file mat_tools.h.
void CSG_Unique_String_Statistics::Add_Value | ( | const CSG_String & | Value, |
double | Weight = 1. |
||
) |
Definition at line 930 of file mat_tools.cpp.
References CSG_Strings::Add(), CSG_Array_Int::Add(), CSG_Vector::Add_Row(), CSG_String::Cmp(), CSG_Unique_Value_Statistics::Get_Count(), CSG_Unique_Value_Statistics::m_bWeights, CSG_Unique_Value_Statistics::m_Count, and CSG_Unique_Value_Statistics::m_Weight.
|
virtual |
Reimplemented from CSG_Unique_Value_Statistics.
Definition at line 921 of file mat_tools.cpp.
References CSG_Strings::Clear(), CSG_Array_Int::Destroy(), CSG_Unique_Value_Statistics::m_bWeights, and CSG_Unique_Value_Statistics::m_Count.
|
inline |
Definition at line 883 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Count().
int CSG_Unique_String_Statistics::Get_Class_Index | ( | const CSG_String & | Value | ) | const |
Definition at line 957 of file mat_tools.cpp.
References CSG_String::Cmp(), and CSG_Unique_Value_Statistics::Get_Count().
|
inline |
Definition at line 893 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Majority().
|
inline |
Definition at line 894 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Majority().
|
inline |
Definition at line 895 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Minority().
|
inline |
Definition at line 896 of file mat_tools.h.
References CSG_Unique_Value_Statistics::Get_Minority().
|
inline |
Definition at line 881 of file mat_tools.h.
|
inline |
Definition at line 879 of file mat_tools.h.