SAGA API  v9.6
CSG_Unique_Value_Statistics Class Reference

#include <mat_tools.h>

Inheritance diagram for CSG_Unique_Value_Statistics:
CSG_Unique_Number_Statistics CSG_Unique_String_Statistics

Public Member Functions

 CSG_Unique_Value_Statistics (void)
 
virtual ~CSG_Unique_Value_Statistics (void)
 
virtual void Create (bool bWeights=false)
 
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
 

Protected Attributes

bool m_bWeights {false}
 
CSG_Array_Int m_Count
 
CSG_Vector m_Weight
 

Detailed Description

Definition at line 809 of file mat_tools.h.

Constructor & Destructor Documentation

◆ CSG_Unique_Value_Statistics()

CSG_Unique_Value_Statistics::CSG_Unique_Value_Statistics ( void  )
inline

Definition at line 812 of file mat_tools.h.

◆ ~CSG_Unique_Value_Statistics()

virtual CSG_Unique_Value_Statistics::~CSG_Unique_Value_Statistics ( void  )
inlinevirtual

Definition at line 813 of file mat_tools.h.

Member Function Documentation

◆ Create()

virtual void CSG_Unique_Value_Statistics::Create ( bool  bWeights = false)
inlinevirtual

◆ Get_Count() [1/2]

int CSG_Unique_Value_Statistics::Get_Count ( int  i) const
inline

Definition at line 818 of file mat_tools.h.

◆ Get_Count() [2/2]

◆ Get_Majority()

int CSG_Unique_Value_Statistics::Get_Majority ( bool  bWeighted = false) const
virtual

◆ Get_Minority()

int CSG_Unique_Value_Statistics::Get_Minority ( bool  bWeighted = false) const
virtual

◆ Get_Weight()

double CSG_Unique_Value_Statistics::Get_Weight ( int  i) const
inline

Definition at line 819 of file mat_tools.h.

Member Data Documentation

◆ m_bWeights

◆ m_Count

◆ m_Weight

CSG_Vector CSG_Unique_Value_Statistics::m_Weight
protected

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