View source: R/vpca_clustering.R
vpca_clustering | R Documentation |
vpca_clustering
performs the fuzzy clustering algorithm proposed
by \insertCitehe2018unsupervised;textualmlmts.
vpca_clustering(
X,
k,
m,
var_rate = 0.9,
max_it = 1000,
tol = 1e-05,
crisp = FALSE
)
X |
A list of MTS (numerical matrices). |
k |
The number of clusters. |
m |
The fuzziness coefficient (a real number greater than one). |
var_rate |
Rate of retained variability concerning the dimensionality-reduced MTS samples (default is 0.90). |
max_it |
The maximum number of iterations (default is 1000). |
tol |
The tolerance (default is 1e-5). |
crisp |
Logical. If |
This function executes the fuzzy clustering procedure proposed by
. The algorithm represents each MTS in the original collection by means of
a dimensionality-reduced MTS constructed through variable-based principal
component analysis (VPCA). Then, fuzzy K
-means-type procedure is considered
for the set of dimensionalityu-reduced samples. A spatial weighted matrix
dissimilarity is considered to compute the distances between the reduced
MTS and the centroids.
A list with three elements:
U
. If crisp = FALSE
(default), the membership matrix. Otherwise,
a vector defining the corresponding crisp partition.
centroids
. If crisp = FALSE
(default), a list containing the
series playing the role of centroids, which are dimensionality-reduced averaged MTS. Otherwise, this
element is not returned.
iterations
. The number of iterations before the algorithm
stopped.
Ángel López-Oriona, José A. Vilar
he2018unsupervisedmlmts
vpca_clustering
fuzzy_clustering <- vpca_clustering(AtrialFibrillation$data, k = 3, m = 1.5)
# Executing the fuzzy clustering algorithm in the dataset AtrialFibrillation
# by considering 3 clusters and a value of 1.5 for the fuziness parameter
fuzzy_clustering$U # The membership matrix
crisp_clustering <- vpca_clustering(AtrialFibrillation$data, k = 3, m = 1.5, crisp = TRUE)
# The same as before, but we are interested in the corresponding crisp partition
crisp_clustering$U # The crisp partition
crisp_clustering$iterations # The number of iterations before the algorithm
# stopped
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.