parameters

open override fun parameters(params: DoubleArray)(source)

This function sets the parameters of the distribution according to the supplied array. The array must have the following form

  • first (cdf.size) elements of the array are the elements of the mixing CDF Then, in the order of the supplied list of distributions, the array holds in consecutive entries, the parameters of each distribution.

Parameters

params

the array of parameters to process. The size of this array must be the size of the array returned from the parameters() function.


open override fun parameters(): DoubleArray(source)

This function returns the parameters of the mixture distribution as an array. The array will have the following form

  • first (cdf.size) elements of the array are the elements of the mixing CDF Then, in the order of the supplied list of distributions, the array will hold, in consecutive entries, the parameters of each distribution.

Return

the mixing CDF and distribution parameters as an array.