clucenters¶
Determine cluster centers using the uniform distribution, taking into account
the number of clusters (num_clusters
) and the average cluster separation
(clu_sep
).
More specifically, let \(c=\) num_clusters
, \(\mathbf{s}=\) clu_sep
,
\(\mathbf{o}=\) clu_offset
, \(n=\) numel(clu_sep)
(i.e., number of dimensions).
Cluster centers are obtained according to the following equation:
where \(\mathbf{C}\) is the \(c \times n\) matrix of cluster centers, \(\mathbf{U}\) is an \(c \times n\) matrix of random values drawn from the uniform distribution between -0.5 and 0.5, and \(\mathbf{1}\) is an \(c \times 1\) vector with all entries equal to 1.
Arguments¶
num_clusters
- Number of clusters.clu_sep
- Average cluster separation (\(n \times 1\) vector).clu_offset
- Cluster offsets (\(n \times 1\) vector).
Return values¶
clu_centers
- A \(c \times n\) matrix containing the cluster centers.
Note¶
This function is stochastic. For reproducibility set the PRNG seed with
cluseed()
as discussed in the Reference.