SAGA API  v9.6
CSG_Unique_Number_Statistics Class Reference

#include <mat_tools.h>

Inheritance diagram for CSG_Unique_Number_Statistics:
CSG_Unique_Value_Statistics

Public Member Functions

 CSG_Unique_Number_Statistics (bool bWeights=false)
 
virtual ~CSG_Unique_Number_Statistics (void)
 
virtual void Create (bool bWeights=false)
 
void operator+= (double Value)
 
void Add_Value (double Value, double Weight=1.)
 
double Get_Value (int Index) const
 
int Get_Class_Index (double Value) const
 
bool Get_Class (int Index, double &Value, int &Count) const
 
bool Get_Majority (double &Value) const
 
bool Get_Majority (double &Value, int &Count) const
 
bool Get_Minority (double &Value) const
 
bool Get_Minority (double &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 836 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Unique_Number_Statistics()

CSG_Unique_Number_Statistics::CSG_Unique_Number_Statistics ( bool  bWeights = false)
inline

Definition at line 839 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Create().

◆ ~CSG_Unique_Number_Statistics()

virtual CSG_Unique_Number_Statistics::~CSG_Unique_Number_Statistics ( void  )
inlinevirtual

Definition at line 840 of file mat_tools.h.

Member Function Documentation

◆ Add_Value()

void CSG_Unique_Number_Statistics::Add_Value ( double  Value,
double  Weight = 1. 
)

◆ Create()

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

◆ Get_Class()

bool CSG_Unique_Number_Statistics::Get_Class ( int  Index,
double &  Value,
int &  Count 
) const
inline

Definition at line 848 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Count().

◆ Get_Class_Index()

int CSG_Unique_Number_Statistics::Get_Class_Index ( double  Value) const

Definition at line 902 of file mat_tools.cpp.

References CSG_Unique_Value_Statistics::Get_Count().

◆ Get_Majority() [1/2]

bool CSG_Unique_Number_Statistics::Get_Majority ( double &  Value) const
inline

Definition at line 858 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Majority().

◆ Get_Majority() [2/2]

bool CSG_Unique_Number_Statistics::Get_Majority ( double &  Value,
int &  Count 
) const
inline

Definition at line 859 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Majority().

◆ Get_Minority() [1/2]

bool CSG_Unique_Number_Statistics::Get_Minority ( double &  Value) const
inline

Definition at line 860 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Minority().

◆ Get_Minority() [2/2]

bool CSG_Unique_Number_Statistics::Get_Minority ( double &  Value,
int &  Count 
) const
inline

Definition at line 861 of file mat_tools.h.

References CSG_Unique_Value_Statistics::Get_Minority().

◆ Get_Value()

double CSG_Unique_Number_Statistics::Get_Value ( int  Index) const
inline

Definition at line 846 of file mat_tools.h.

◆ operator+=()

void CSG_Unique_Number_Statistics::operator+= ( double  Value)
inline

Definition at line 844 of file mat_tools.h.


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