示例#1
0
 public virtual bool isEqual(Lab l)
 {
     if (l.getState() != -1 && this.getState() != -1)
     {
         return(String.instancehelper_equals(l.getName(), this.getName()) && l.getState() == this.getState());
     }
     return(String.instancehelper_equals(l.getName(), this.getName()));
 }
示例#2
0
 public Lab(Lab @ref)
 {
     this.numState = -1;
     this.start    = -1;
     this.end      = -1;
     this.setDeb(@ref.getStart());
     this.setFin(@ref.getEnd());
     this.setName(@ref.getName());
     this.setStateIdx(@ref.getState());
 }
示例#3
0
        public virtual GMMDiag findState(Lab l)
        {
            HMMState hmmstate;

            for (;;)
            {
                hmmstate = null;
                int i;
                for (i = 0; i < this.__states.size(); i++)
                {
                    hmmstate = (HMMState)this.__states.get(i);
                    if (hmmstate.getLab().isEqual(l))
                    {
                        break;
                    }
                }
                if (i < this.__states.size())
                {
                    break;
                }
                if (this.tiedHMMs == null)
                {
                    goto IL_A8;
                }
                for (i = 0; i < this.tiedHMMs.Length; i++)
                {
                    if (String.instancehelper_equals(this.tiedHMMs[i][0], l.getName()))
                    {
                        break;
                    }
                }
                if (i >= this.tiedHMMs.Length)
                {
                    goto IL_A8;
                }
                l = new Lab(this.tiedHMMs[i][1], l.getState());
            }
            return(hmmstate.__gmm);

IL_A8:
            java.lang.System.err.println(new StringBuilder().append("WARNING: state is not found in hmmset ").append(l).toString());
            return(null);
        }