# %DeepSee.extensions.clusters.Ordered

class **%DeepSee.extensions.clusters.Ordered** extends %Library.RegisteredObject

Methods in this class divide the set into a given number of subsets trying to optimize a given target value. Target value can be:

- Cost, i.e. the sum of the sum of squared deviations from the mean-value within each cluster
- Correlation between clusters (regions) and entities
- Loss of information caused by using a region as a hole instead of every entity in the region

### Method Inventory

## Methods

`nc`clusters.

The algorithm is described in:

Helmuth Spaeth,

Cluster Analysis Algorithms for Data Reduction and Classification of Objects,

Ellis Horwood, 1980, page 63, QA278 S6813.

Input data is given as a multidimensional array `m`. The top value of `m` must be the number of
data objects in the array. The array contains numerical values m(1:m) for each object.

In most cases `key` should be an empty string. In such a case all calculations are done in memory.
If `key` has value then this value is used as a subscript ot a process private globals that hold
intermediate results. This will make the calculations significantly slower but will allow to deal with
larger amount of objects.

The result is returned in teh form of multi-dimensional array `q`.
q(1:nc,1:nc), describes the clusters of data.
The last row of `q` stores the first element in each cluster.
Thus cluster 1 contains data items q(nc,1) through q(nc,2)-1.
Other information is contained in previous rows. In particular,
in row J, columns 1 through J, there is similar information
about a partition involving J clusters.

For more information about Pearson-Gamma correlation coefficent see PearsonGamma

## Inherited Members

### Inherited Methods

- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()