|
SAGA API v9.10
|
#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 1165 of file mat_tools.h.
| CSG_Cluster_Analysis::CSG_Cluster_Analysis | ( | void | ) |
Definition at line 2012 of file mat_tools.cpp.
|
virtual |
Definition at line 2019 of file mat_tools.cpp.
References Destroy().
| bool CSG_Cluster_Analysis::Add_Element | ( | void | ) |
Definition at line 2056 of file mat_tools.cpp.
| bool CSG_Cluster_Analysis::Create | ( | int | nFeatures | ) |
Definition at line 2039 of file mat_tools.cpp.
References Destroy(), and SG_ARRAY_GROWTH_3.
| bool CSG_Cluster_Analysis::Destroy | ( | void | ) |
Definition at line 2025 of file mat_tools.cpp.
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 2085 of file mat_tools.cpp.
References Get_nElements(), and CSG_Random::Get_Uniform().
|
inline |
Definition at line 1191 of file mat_tools.h.
Definition at line 1177 of file mat_tools.h.
References Get_nElements().
|
inline |
Definition at line 1185 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.
Referenced by Execute(), Get_Cluster(), and Set_Feature().
|
inline |
Definition at line 1182 of file mat_tools.h.
|
inline |
Definition at line 1189 of file mat_tools.h.
|
inline |
Definition at line 1187 of file mat_tools.h.
|
inline |
Definition at line 1190 of file mat_tools.h.
| bool CSG_Cluster_Analysis::Set_Feature | ( | sLong | iElement, |
| int | iFeature, | ||
| double | Value ) |
Definition at line 2062 of file mat_tools.cpp.
References Get_nElements().