~ Function: affectFuzzyIndiv ~
Given some longitudinal data (trajectories) and k cluster's centers, affectFuzzyIndiv
compute the matrix of individual membership (according to the algorithm
fuzzy k-means).
affectFuzzyIndiv(traj, clustersCenter, fuzzyfier=1.25)
traj |
|
clustersCenter |
|
fuzzyfier |
|
Given a matrix of clusters center clustersCenter
(each line is
a cluster center), the function affectFuzzyIndiv
compute for
each individual and each cluster a "membership".
affectFuzzyIndiv
used with calculTrajFuzzyMean
simulates one fuzzy k-means step.
Matrix of the membership. Each line is an individual, column are for clusters.
####################### ### affectFuzzyIndiv ### Some LongitudinalData traj <- gald()["traj"] ### 4 clusters centers center <- traj[runif(4,1,nrow(traj)),] ### Affectation of each individual affectFuzzyIndiv(traj,center)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.