public final String getBestOutcome ( double [ ] ocs ) { int best = 0 ; for ( int i = 1 ; i < ocs . length ; i ++ ) if ( ocs [ i ] > ocs [ best ] ) best = i ; return ocNames [ best ] ; }
Return the name of the outcome corresponding to the highest likelihood in the parameter ocs .