double function ( ) { if ( scales == null ) { calculateForwardProbabilities ( ) ; } double loc0 = 1 ; for ( int loc1 = 0 ; loc1 < observationSequence . size ( ) ; loc1 ++ ) { loc0 *= scales [ loc1 ] ; } return 1 / loc0 ; }
compute the probability of the observation sequence calls computerforwardprobabilities if it has n't been called already concode_field_sep double[] scales concode_elem_sep HiddenMarkovModel model concode_elem_sep double[][] forwardProbabilities concode_elem_sep DataSet observationSequence concode_elem_sep double[][] backwardProbabilities concode_field_sep double[][] calculateBackwardProbabilities concode_elem_sep double calculateLogProbability concode_elem_sep double[][] calculateForwardProbabilities