affectIndiv
affecte each individual to the cluster whose center is the closest.affectIndivGeneralized(traj, clustersCenter, distance = function(x, y) {
return(dist(t(cbind(x, y))))
})
[LongitudinalData]{Partition} .
affectIndivGeneralized
does. In addition to
affectIndiv
, it also let the user to define a
non-classical distance.
Note that affectIndiv
does not work with
ClusterizLongData
object but with a matrix.
affectIndivGenerized
used with
calculCenterGeneralized
does simulate one step of EM-algorithm.
This function is programmed in R, it is not expect to be as fast as affectIndiv
.