<< importfis sciFLT linear >>

sciFLT >> sciFLT > inwichclust

inwichclust

Find associated cluster

Calling Sequence

po=inwichclust(X,centers)

Parameters

X:

matrix of real. Data points.

centers:

matrix of real. Cluster centers.

po:

matrix of integers. Associated cluster of each point

Description

inwichclust return the nearest cluster's center position of the pair of data X.

Examples

// Generate 10 points centered in (1,1) (2,2) and (5,5)
X=[1+rand(10,2);2+rand(10,2);5+rand(10,2)];
centers=subclust(X);
po=inwichclust(X,centers);

See also

Authors


Report an issue
<< importfis sciFLT linear >>