Logo Search packages:      
Sourcecode: apertium version File versions  Download package

void HMM::init (  )  [private]

It allocs memory for the transition (a) and the emission (b) matrices. Before calling this method the number of ambiguity classes must be known. This methos is called within read_ambiguity_classes and read_dictionary.

See also:
: read_ambiguity_classes, read_dictionary

Definition at line 98 of file HMM.C.

Referenced by read_ambiguity_classes(), and read_dictionary().

  int i;
  //Matrix NxN
  a = new double* [N];
  for(i=0; i<N; i++)
    a[i] = new double[N];
  //Matrix NxM 
  b = new double* [N];
  for(i=0; i<N; i++)
    b[i] = new double[M];

Generated by  Doxygen 1.6.0   Back to index