SAGA API  v9.6
CSG_Unique_String_Statistics Class Reference

#include <mat_tools.h>

Inheritance diagram for CSG_Unique_String_Statistics:
CSG_Unique_Value_Statistics

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_CharGet_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
 

Detailed Description

Definition at line 871 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Unique_String_Statistics()

CSG_Unique_String_Statistics::CSG_Unique_String_Statistics ( bool  bWeights = false)
inline

Definition at line 874 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Create().

◆ ~CSG_Unique_String_Statistics()

virtual CSG_Unique_String_Statistics::~CSG_Unique_String_Statistics ( void  )
inlinevirtual

Definition at line 875 of file mat_tools.h.

Member Function Documentation

◆ Add_Value()

◆ Create()

void CSG_Unique_String_Statistics::Create ( bool  bWeights = false)
virtual

◆ Get_Class()

bool CSG_Unique_String_Statistics::Get_Class ( int  Index,
CSG_String Value,
int &  Count 
) const
inline

Definition at line 883 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Count().

◆ Get_Class_Index()

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().

◆ Get_Majority() [1/2]

bool CSG_Unique_String_Statistics::Get_Majority ( CSG_String Value) const
inline

Definition at line 893 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Majority().

◆ Get_Majority() [2/2]

bool CSG_Unique_String_Statistics::Get_Majority ( CSG_String Value,
int &  Count 
) const
inline

Definition at line 894 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Majority().

◆ Get_Minority() [1/2]

bool CSG_Unique_String_Statistics::Get_Minority ( CSG_String Value) const
inline

Definition at line 895 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Minority().

◆ Get_Minority() [2/2]

bool CSG_Unique_String_Statistics::Get_Minority ( CSG_String Value,
int &  Count 
) const
inline

Definition at line 896 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Minority().

◆ Get_Value()

const SG_Char* CSG_Unique_String_Statistics::Get_Value ( int  Index) const
inline

Definition at line 881 of file mat_tools.h.

◆ operator+=()

void CSG_Unique_String_Statistics::operator+= ( const CSG_String Value)
inline

Definition at line 879 of file mat_tools.h.


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