Example usage for org.apache.commons.math3.distribution NormalDistribution getNumericalMean

List of usage examples for org.apache.commons.math3.distribution NormalDistribution getNumericalMean

Introduction

In this page you can find the example usage for org.apache.commons.math3.distribution NormalDistribution getNumericalMean.

Prototype

public double getNumericalMean() 

Source Link

Document

For mean parameter mu , the mean is mu .

Usage

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());
}