List of usage examples for org.apache.commons.math3.distribution NormalDistribution getNumericalMean
public double getNumericalMean()
From source file:org.apache.solr.client.solrj.io.stream.eval.NormalDistributionEvaluatorTest.java
@Test public void test() throws IOException { values.clear();// w w w .jav a 2 s.co m values.put("l1", 3); values.put("l2", 7); NormalDistribution dist = new NormalDistribution(3, 7); Assert.assertEquals(dist.getNumericalMean(), ((NormalDistribution) factory.constructEvaluator("norm(l1,l2)").evaluate(new Tuple(values))) .getNumericalMean()); }