Example usage for org.apache.mahout.math.jet.random AbstractContinousDistribution pdf

List of usage examples for org.apache.mahout.math.jet.random AbstractContinousDistribution pdf

Introduction

In this page you can find the example usage for org.apache.mahout.math.jet.random AbstractContinousDistribution pdf.

Prototype

public double pdf(double x) 

Source Link

Usage

From source file:com.mapr.stats.DistributionTest.java

License:Apache License

protected void pdfCheck(double[] xValues, double[] expected, AbstractContinousDistribution d) {
    int i = 0;// w ww.jav a2 s.c  om
    for (double x : xValues) {
        assertEquals(expected[i], d.pdf(x), 1e-15);
        i++;
    }
}