Fuzzy c-means of a dataset of histogram-valued data using different adaptive distances based on the L2 Wasserstein metric.
WH_adaptive_fcmeans(
x,
k = 5,
schema,
m = 1.6,
rep,
simplify = FALSE,
qua = 10,
standardize = FALSE,
init.weights = "EQUAL",
weight.sys = "PROD",
theta = 2,
verbose = FALSE
)
A MatH object (a matrix of distributionH).
An integer, the number of groups.
An integer. 1=one weight per variable, 2=two weights per variables (one for each component: the mean and the variability component), 3=one weight per variable and per cluster, 4= two weights per variable and per cluster.
A number grater than 0, a fuzziness coefficient (default m
=1.6).
An integer, maximum number of repetitions of the algorithm (default rep
=5).
A logic value (default is FALSE), if TRUE histograms are recomputed in order to speed-up the algorithm.
An integer, if simplify
=TRUE is the number of quantiles used for recodify the histograms.
A logic value (default is FALSE). If TRUE, histogram-valued data are standardized, variable by variable, using the Wassertein based standard deviation. Use if one wants to have variables with std equal to one.
A string. (default='EQUAL'). EQUAL, all variables or components have the same weight; 'RANDOM', a random assignment is done.
A string. (default='PROD') PROD, Weights product is equal to one. SUM, the weights sum up to one.
A number. (default=2) A parameter for the system of weights summing up to one.
A logic value (default is FALSE). If TRUE some details are provided.
The results of the fuzzy c-means of the set of Histogram-valued data x
into k
cluster.
A list.Returns the best solution among the rep
etitions, i.e. the ona having the minimum sum of squares deviation.
A matrix. The membership degree of each unit to each cluster.
A vector. The crisp assignement to a cluster.
A vector. The cardinality of each final cluster (after the crisp assignement).
A number. The criterion (Sum od square deviation from the prototypes) value at the end of the run.
A number. The percentage of Sum of square deviation explained by the model. (The higher the better)
# NOT RUN {
results=WH_adaptive_fcmeans(x = BLOOD,k = 2,schema=4,m = 1.5,rep = 3,simplify = TRUE,
qua = 10,standardize = TRUE,init.weights='EQUAL', weight.sys='PROD')
# }
Run the code above in your browser using DataLab