assign.clusters {DBHC}R Documentation

Cluster Assignment

Description

Assign sequences to cluster models that give the highest sequence-to-hmm likelihood. Used in hmm.clust.

Usage

assign.clusters(partition, memberships, sequences, smoothing = 1e-04)

Arguments

partition

A list object with the partition, a mixture of HMMs. Each element in the list is an hmm object (see build_hmm).

memberships

A matrix with cluster memberships for each sequence.

sequences

An stslist object (see seqdef) of sequences with discrete observations.

smoothing

Smoothing parameter for absolute discounting in smooth.probabilities.

Value

The updated matrix with cluster memberships for each sequence.

See Also

Used in main function for the DBHC algorithm hmm.clust.


[Package DBHC version 0.0.3 Index]