For build()
the dissimilarity between the new observation and the
centers of the clusters is calculated. The new observation is assigned to
the closest cluster if the dissimilarity value is smaller than the
threshold (for the state). If no such state exists, a new state is created
for the observation. This simple clustering algorithm is called
nearest neighbor threshold nearest neighbor (threshold NN). After clustering, the EMM is updated.
An edge with weight 1 from the current state to the new state (determined
by the chosen cluster) is added. If this edge already existed,
the weight is incremented by one.
The new state becomes the current state.
NA
s are handled in the data by using only the other
dimensions if the data for dissimilarity computation
(see package~proxy).
reset
resets the current state to NA
for reading in a
new sequence. A row of all NA
in newdata
for build
also resets the current state.