Bug fix for the maths_fns.n_state_model.func() optimisation target function.
The probability of state N was not being caught and calculated from the others.
Authored by: bugman 2008-01-21
Parent: [r4873]
Child: [r4875]