# EmpiricalCDF Constructor (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.

**Namespace:**
Highpoint.Sage.Mathematics

**Assembly:**
Sage4 (in Sage4.dll)

## Syntax

public EmpiricalCDF( double[] binBounds, double[] heights, IDoubleInterpolator idi )

#### Parameters

- binBounds
- Type: array<Double>[]()[][]

An array of 'n+1' doubles in ascending order denoting the boundaries of the bins of the histogram.

- heights
- Type: array<Double>[]()[][]

An array of 'n' doubles denoting the height of the bins.

- idi
- Type: Highpoint.Sage.Mathematics..::..IDoubleInterpolator

A doubleInterpolator.