Fixed explanation for GaussDecayFunction
The explanation now gives the correct value instead of the negative.
This commit is contained in:
parent
91144fc92f
commit
5e0f67b516
|
@ -47,7 +47,7 @@ public class GaussDecayFunctionParser extends DecayFunctionParser {
|
||||||
public Explanation explainFunction(String valueExpl, double value, double scale) {
|
public Explanation explainFunction(String valueExpl, double value, double scale) {
|
||||||
ComplexExplanation ce = new ComplexExplanation();
|
ComplexExplanation ce = new ComplexExplanation();
|
||||||
ce.setValue((float) evaluate(value, scale));
|
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;
|
return ce;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue