[hparm,Icls]=mrhmm_initialize(Z,K,Ns,shfts,func_str,inv_str,Idx,ntot,pdf_type, ... subclassnames,class_feat_map,state_to_subclass,A_mask,Pi_mask,beta_end);Note that Icls is a re-formatted version of the segment label variable Idx. For event i, Icls{i} will be a single stream of integers, equal in length to the number of base segments in event X{i}, with zero indicationg no label, otherwise with the index of the signal class that each base segment is assigned to.