![]() |
SAGA API v9.10
|
#include <mat_tools.h>
Public Member Functions | |
CSG_Category_Statistics (TSG_Data_Type Type=SG_DATATYPE_String) | |
virtual | ~CSG_Category_Statistics (void) |
void | Create (TSG_Data_Type Type=SG_DATATYPE_String) |
void | Destroy (void) |
TSG_Data_Type | Get_Category_Type (void) const |
int | Add_Value (int Value) |
int | Add_Value (double Value) |
int | Add_Value (const CSG_String &Value) |
void | operator+= (int Value) |
void | operator+= (double Value) |
void | operator+= (const CSG_String &Value) |
bool | Sort (void) |
int | Get_Count (void) const |
int | Get_Count (int iCategory) const |
int | asInt (int iCategory) const |
double | asDouble (int iCategory) const |
CSG_String | asString (int iCategory) const |
int | Get_Category (int Value) const |
int | Get_Category (double Value) const |
int | Get_Category (const CSG_String &Value) const |
bool | Get_Category (int iCategory, int &Value, int &Count) const |
bool | Get_Category (int iCategory, double &Value, int &Count) const |
bool | Get_Category (int iCategory, CSG_String &Value, int &Count) const |
int | Get_Majority (void) |
bool | Get_Majority (int &Value) |
bool | Get_Majority (double &Value) |
bool | Get_Majority (CSG_String &Value) |
bool | Get_Majority (int &Value, int &Count) |
bool | Get_Majority (double &Value, int &Count) |
bool | Get_Majority (CSG_String &Value, int &Count) |
int | Get_Minority (void) |
bool | Get_Minority (int &Value) |
bool | Get_Minority (double &Value) |
bool | Get_Minority (CSG_String &Value) |
bool | Get_Minority (int &Value, int &Count) |
bool | Get_Minority (double &Value, int &Count) |
bool | Get_Minority (CSG_String &Value, int &Count) |
Definition at line 925 of file mat_tools.h.
CSG_Category_Statistics::CSG_Category_Statistics | ( | TSG_Data_Type | Type = SG_DATATYPE_String | ) |
Definition at line 978 of file mat_tools.cpp.
References Create().
|
virtual |
Definition at line 986 of file mat_tools.cpp.
int CSG_Category_Statistics::Add_Value | ( | const CSG_String & | Value | ) |
Definition at line 1087 of file mat_tools.cpp.
References CSG_Table_Record::Add_Value(), Get_Category(), and Sort().
int CSG_Category_Statistics::Add_Value | ( | double | Value | ) |
Definition at line 1067 of file mat_tools.cpp.
References CSG_Table_Record::Add_Value(), Get_Category(), and Sort().
int CSG_Category_Statistics::Add_Value | ( | int | Value | ) |
Definition at line 1047 of file mat_tools.cpp.
References CSG_Table_Record::Add_Value(), Get_Category(), and Sort().
Referenced by operator+=(), operator+=(), and operator+=().
double CSG_Category_Statistics::asDouble | ( | int | iCategory | ) | const |
Definition at line 1143 of file mat_tools.cpp.
References CSG_Table_Record::asDouble().
Referenced by Get_Category().
int CSG_Category_Statistics::asInt | ( | int | iCategory | ) | const |
Definition at line 1135 of file mat_tools.cpp.
References CSG_Table_Record::asInt().
Referenced by Get_Category(), and Get_Majority().
CSG_String CSG_Category_Statistics::asString | ( | int | iCategory | ) | const |
Definition at line 1151 of file mat_tools.cpp.
References CSG_Table_Record::asString(), and SG_T.
Referenced by Get_Category().
void CSG_Category_Statistics::Create | ( | TSG_Data_Type | Type = SG_DATATYPE_String | ) |
Definition at line 992 of file mat_tools.cpp.
References SG_DATATYPE_ULong.
Referenced by CSG_Category_Statistics().
void CSG_Category_Statistics::Destroy | ( | void | ) |
Definition at line 1001 of file mat_tools.cpp.
int CSG_Category_Statistics::Get_Category | ( | const CSG_String & | Value | ) | const |
Definition at line 1034 of file mat_tools.cpp.
References CSG_Table_Record::Get_Index().
int CSG_Category_Statistics::Get_Category | ( | double | Value | ) | const |
Definition at line 1026 of file mat_tools.cpp.
References CSG_Table_Record::Get_Index().
|
inline |
Definition at line 973 of file mat_tools.h.
References asString(), and Get_Count().
|
inline |
Definition at line 965 of file mat_tools.h.
References asDouble(), and Get_Count().
|
inline |
Definition at line 957 of file mat_tools.h.
References asInt(), and Get_Count().
int CSG_Category_Statistics::Get_Category | ( | int | Value | ) | const |
Definition at line 1018 of file mat_tools.cpp.
References CSG_Table_Record::Get_Index().
Referenced by Add_Value(), Add_Value(), Add_Value(), Get_Majority(), Get_Majority(), Get_Majority(), Get_Majority(), Get_Majority(), Get_Majority(), Get_Minority(), Get_Minority(), Get_Minority(), Get_Minority(), Get_Minority(), and Get_Minority().
TSG_Data_Type CSG_Category_Statistics::Get_Category_Type | ( | void | ) | const |
Definition at line 1007 of file mat_tools.cpp.
int CSG_Category_Statistics::Get_Count | ( | int | iCategory | ) | const |
Definition at line 1127 of file mat_tools.cpp.
References CSG_Table_Record::asInt().
int CSG_Category_Statistics::Get_Count | ( | void | ) | const |
Definition at line 1120 of file mat_tools.cpp.
Referenced by Get_Category(), Get_Category(), and Get_Category().
|
inline |
Definition at line 984 of file mat_tools.h.
References Get_Category(), and Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 987 of file mat_tools.h.
References Get_Category(), and Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 983 of file mat_tools.h.
References Get_Category(), and Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 986 of file mat_tools.h.
References Get_Category(), and Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 982 of file mat_tools.h.
References Get_Category(), and Get_Majority().
Referenced by Get_Majority().
|
inline |
Definition at line 985 of file mat_tools.h.
References Get_Category(), and Get_Majority().
Referenced by Get_Majority().
int CSG_Category_Statistics::Get_Majority | ( | void | ) |
Definition at line 1164 of file mat_tools.cpp.
References asInt().
|
inline |
Definition at line 992 of file mat_tools.h.
References Get_Category(), and Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 995 of file mat_tools.h.
References Get_Category(), and Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 991 of file mat_tools.h.
References Get_Category(), and Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 994 of file mat_tools.h.
References Get_Category(), and Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 990 of file mat_tools.h.
References Get_Category(), and Get_Minority().
Referenced by Get_Minority().
|
inline |
Definition at line 993 of file mat_tools.h.
References Get_Category(), and Get_Minority().
Referenced by Get_Minority().
int CSG_Category_Statistics::Get_Minority | ( | void | ) |
Definition at line 1186 of file mat_tools.cpp.
|
inline |
Definition at line 942 of file mat_tools.h.
References Add_Value().
|
inline |
Definition at line 941 of file mat_tools.h.
References Add_Value().
|
inline |
Definition at line 940 of file mat_tools.h.
References Add_Value().
bool CSG_Category_Statistics::Sort | ( | void | ) |
Definition at line 1108 of file mat_tools.cpp.
References TABLE_INDEX_Ascending.
Referenced by Add_Value(), Add_Value(), and Add_Value().