tests_of_fit
Class ECDF

java.lang.Object
  |
  +--tests_of_fit.ECDF

public class ECDF
extends java.lang.Object

This class returns the x,y for an empirical cumulative distribution function.

It assumes that the data has already been sorted.


Constructor Summary
ECDF()
           
 
Method Summary
 void generate(double[] sorted_data, int n, double[] x, double[] y)
           This method takes a set of sorted data and returns the associated x,y plotting positions for an empirical cumulative distribution function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECDF

public ECDF()
Method Detail

generate

public void generate(double[] sorted_data,
                     int n,
                     double[] x,
                     double[] y)

This method takes a set of sorted data and returns the associated x,y plotting positions for an empirical cumulative distribution function.

Parameters:
n - The number of data points.
x - The array of x values returned by the method.
y - The array of y values returned by the method.