EstimatedResponse

constructor(name: String, data: DoubleArray)(source)
constructor(name: String, data: List<Double>)(source)

If the data is empty, the average will be NaN and thus an IllegalArgumentException will occur.

Parameters

data

the data must not be empty.


constructor(name: String, average: Double, variance: Double, count: Double)(source)

Parameters

name

the name of the response that was estimated

average

the sample average of the sample

variance

the sample variance of the sample

count

the number of observations in the sample