Fixed explanation for GaussDecayFunction

The explanation now gives the correct value instead of the negative.
This commit is contained in:
Philipp Jardas 2014-09-09 17:37:30 +02:00 committed by Britta Weber
parent 91144fc92f
commit 5e0f67b516
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public class GaussDecayFunctionParser extends DecayFunctionParser {
public Explanation explainFunction(String valueExpl, double value, double scale) {
ComplexExplanation ce = new ComplexExplanation();
ce.setValue((float) evaluate(value, scale));
ce.setDescription("-exp(-0.5*pow(" + valueExpl + ",2.0)/" + -1 * scale + ")");
ce.setDescription("exp(-0.5*pow(" + valueExpl + ",2.0)/" + -1 * scale + ")");
return ce;
}