* @param meanExpression expression to be evaluated to find mean value
*/
public synchronized void setRangeDistributionMean(Object key, String meanExpression) {
Range tmp = ranges.get(key);
// Calculates min value using parser and sets it into distribution
Parser parser = new Parser(meanExpression, true);
try {
parser.setVariable(VAR, tmp.from);
tmp.distribution.setMean(parser.getValue());
// Allow range only if its value in 'from' point is assignable to
// current distribution
if (tmp.distribution.getMean() - parser.getValue() < 1e-5) {
tmp.meanExpression = parser.getExpression();
}
} catch (ParseError e) {
// Do nothing
} catch (EvaluationException e) {
// Do nothing