![]() |
SAGA API
v9.7
|
#include <mat_tools.h>
Public Member Functions | |
CSG_Cluster_Analysis (void) | |
virtual | ~CSG_Cluster_Analysis (void) |
bool | Create (int nFeatures) |
bool | Destroy (void) |
bool | Add_Element (void) |
bool | Set_Feature (sLong iElement, int iFeature, double Value) |
sLong | Get_Cluster (sLong iElement) const |
bool | Execute (int Method, int nClusters, int nMaxIterations=0, int Initialization=0) |
sLong | Get_nElements (void) const |
int | Get_nFeatures (void) const |
int | Get_nClusters (void) const |
int | Get_Iteration (void) const |
double | Get_SP (void) const |
int | Get_nMembers (int iCluster) const |
double | Get_Variance (int iCluster) const |
double | Get_Centroid (int iCluster, int iFeature) const |
Definition at line 1159 of file mat_tools.h.
CSG_Cluster_Analysis::CSG_Cluster_Analysis | ( | void | ) |
Definition at line 1984 of file mat_tools.cpp.
|
virtual |
Definition at line 1991 of file mat_tools.cpp.
References Destroy().
bool CSG_Cluster_Analysis::Add_Element | ( | void | ) |
Definition at line 2028 of file mat_tools.cpp.
References CSG_Array::Inc_Array().
bool CSG_Cluster_Analysis::Create | ( | int | nFeatures | ) |
Definition at line 2011 of file mat_tools.cpp.
References CSG_Array::Create(), and Destroy().
bool CSG_Cluster_Analysis::Destroy | ( | void | ) |
Definition at line 1997 of file mat_tools.cpp.
References CSG_Array::Destroy(), CSG_Array_Int::Destroy(), CSG_Vector::Destroy(), and CSG_Matrix::Destroy().
Referenced by Create(), and ~CSG_Cluster_Analysis().
bool CSG_Cluster_Analysis::Execute | ( | int | Method, |
int | nClusters, | ||
int | nMaxIterations = 0 , |
||
int | Initialization = 0 |
||
) |
Performs the cluster analysis using the features added prior to this step. Method is minimum distance (= default), hill climbing (= 1), or both methods in combination. If nMaxIterations is set to zero, the analysis is iterated until it converges. Initialization is done randomly (= default), periodically (= 1), or skipped (= 2). The latter case allows starting the clustering with user supplied start partitions.
Definition at line 2057 of file mat_tools.cpp.
References CSG_Array_Int::Create(), CSG_Matrix::Create(), CSG_Vector::Create(), Get_nElements(), and CSG_Random::Get_Uniform().
|
inline |
Definition at line 1185 of file mat_tools.h.
Definition at line 1171 of file mat_tools.h.
|
inline |
Definition at line 1179 of file mat_tools.h.
|
inline |
Definition at line 1177 of file mat_tools.h.
|
inline |
Definition at line 1175 of file mat_tools.h.
Referenced by Execute(), and Set_Feature().
|
inline |
Definition at line 1176 of file mat_tools.h.
|
inline |
Definition at line 1183 of file mat_tools.h.
|
inline |
Definition at line 1181 of file mat_tools.h.
|
inline |
Definition at line 1184 of file mat_tools.h.
bool CSG_Cluster_Analysis::Set_Feature | ( | sLong | iElement, |
int | iFeature, | ||
double | Value | ||
) |
Definition at line 2034 of file mat_tools.cpp.
References CSG_Array::Get_Entry(), and Get_nElements().