GammaMOMParameterEstimator

Estimates the shape and scale of a gamma distribution based on the method of moments. Observations must be greater than or equal to zero and must not all be equal. There must be at least two observations. The sample average and sample variance of the observations must be strictly greater than zero.

Properties

Link copied to clipboard
open override val checkRange: Boolean = true

Indicates if the estimator requires that the range of the data be checked for a shift before the estimation process.

Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override var label: String?
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val names: List<String>

The name to associate with each dimension of the array that is returned by estimate(). The names should be unique. The order of the list of names should match the order of elements in the returned array.

Link copied to clipboard
open override val rvType: RVParametersTypeIfc

The type of random variable for which this estimator estimates parameters.

Functions

Link copied to clipboard
open override fun estimate(data: DoubleArray): DoubleArray

If the estimation process is not successful, then an empty array is returned.

Link copied to clipboard
open override fun estimateParameters(data: DoubleArray, statistics: StatisticIfc): EstimationResult

Estimates the parameters associated with some distribution. The returned EstimationResult needs to be consistent with the intent of the desired distribution. Note the meaning of the fields associated with EstimationResult