Cumulative distribution function for each element of x.
x
Array cdfArray(Array x) => Array(x.map(cdf).toList());