Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]

CLUST_WTS


Syntax | Return Value | Arguments | Keywords | Examples | Version History | See Also

The CLUST_WTS function computes the weights (the cluster centers) of an m-column, n-row array, where m is the number of variables and n is the number of observations or samples.

This routine is written in the IDL language. Its source code can be found in the file clust_wts.pro in the lib subdirectory of the IDL distribution.

For more information on cluster analysis, see:

Everitt, Brian S. Cluster Analysis. New York: Halsted Press, 1993. ISBN 0-470-22043-0

Syntax

Result = CLUST_WTS( Array [, /DOUBLE] [, N_CLUSTERS=value] [, N_ITERATIONS=integer] [, VARIABLE_WTS=vector] )

Return Value

Returns an m-column, N_CLUSTERS-row array of cluster centers by computing the weights (the cluster centers) of an m-column, n-row array, where m is the number of variables and n is the number of observations or samples.

Arguments

Array

An m-column, n-row array of any data type except string, single- or double-precision complex.

Keywords

DOUBLE

Set this keyword to force the computation to be done in double-precision arithmetic.

N_CLUSTERS

Set this keyword equal to the number of cluster centers. The default is to compute n cluster centers.

N_ITERATIONS

Set this keyword equal to the number of iterations used when in computing the cluster centers. The default is to use 20 iterations.

VARIABLE_WTS

Set this keyword equal to an m-element vector of floating-point variable weights. The elements of this vector are used to give greater or lesser importance to each variable (each column) in determining the cluster centers. The default is to give all variables equal weighting using a value of 1.0.

Examples

See CLUSTER.

Version History

Introduced: 5.0

See Also

CLUSTER, "Multivariate Analysis" in the Using IDL manual.


Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]