Clusterization-class {kml} | R Documentation |
An object of class Clusterization
is a partition of
trajectories in subgroups.
The object also contains a certain number of information like the
percentage of trajectories that each group contains or the Calinski criterion.
Objects are not intend to be created by users. Clusterization
are created
by kml
and directly added to a "ClusterizLongData"
object.
id
nbClusters
clusters
A
to LETTERS[nbClusters]
. Please note that a group might
be empty. The groups are sort in reverse order (A
is the
biggest group, B
is the next,...percentEachCluster
varBetween
traceBetween
varWithin
traceWithin
detWithin
calinskiCriterion
traceBetween/traceWithin*(g-1)/(n-g)
with
g=number of groups and n=number of individual.)convergenceTime
:kml
to find the Clusterization
A class Clusterization
object must follow some rules to be valid:
nbClusters
has to be lower or equal to 10 (ten clusters maximum).
clusters
and id
have to have the same length.
clusters
has to be a factor in LETTERS[1:nbCluster]
(with
nbClusters
lower than 10).
table(clusters)
has to be in the reverse order
(clusters are sorted form the biggest to the smallest).
id
cannot be duplicated.
id
cannot be missing.
The partitioning of an ensemble of trajectories is given by the couple
(id,clusters)
.
id
must correspond to id
of an object of class ClusterizLongData
; the vector clusters
then sets the group that each individual belongs to.
showClass("Clusterization")