Sage Modeling and Simulation Library

EmpiricalCDF Constructor

Overload List


  Name Description
Public method EmpiricalCDF(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.

Public method EmpiricalCDF(array<Double>[]()[][], array<Double>[]()[][], IDoubleInterpolator)
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.