Sage Modeling and Simulation Library

EmpiricalCDF Constructor (array<Double>[]()[][], array<Double>[]()[][])

Creates an empirical, table-driven CDF from a histogram containing 'n' bins (where n > 1) with low and high bounds, and a count of instances (column height, in effect) in each bin. For example, with binBounds being a double[] with values {3.0, 5.0, 6.0, 7.0}, and heights being a double[] with values {10.0, 30.0, 20.0}, and a linear double interpolator, the empirical CDF will produce values evenly spaced from 3 to 5 1/6th of the time, values evenly spaced from 5 to 6 half the time, and values evenly spaced from 6 to 7 one third of the time.

This form of the constructor defaults to a linear interpolation.

Namespace:  Highpoint.Sage.Mathematics
Assembly:  Sage4 (in Sage4.dll)


public EmpiricalCDF(
	double[] binBounds,
	double[] heights


Type: array<Double>[]()[][]
An array of 'n+1' doubles in ascending order denoting the boundaries of the bins of the histogram.
Type: array<Double>[]()[][]
An array of 'n' doubles denoting the height of the bins.

Return Value

An empirical CDF that returns the same distribution as represented in the histogram.