gammaLikelihood

Normalized log-likelihood function of the gamma distribution.

  1. T gammaLikelihood(T shape, T scale, T[] sample)
    T
    gammaLikelihood
    (
    T
    )
    (
    in T shape
    ,
    in T scale
    ,
    in T[] sample
    )
    if (
    isFloatingPoint!T
    )
  2. T gammaLikelihood(T shape, T scale, T[] sample, T[] weights)
  3. T gammaLikelihood(T shape, T scale, GammaStatistic!T stat)

Examples

import atmosphere.likelihood.generalized_gamma;
immutable l = gammaLikelihood!double(2,3,[1,2]);
immutable m = generalizedGammaLikelihood!double(2,1,3,[1,2]);
assert(l == m);
import atmosphere.likelihood.generalized_gamma;
immutable l = gammaLikelihood!double(2,3,[1,2],[3,4]);
immutable m = generalizedGammaLikelihood!double(2,1,3,[1,2],[3,4]);
assert(l == m);
immutable l = gammaLikelihood!double(1,3,[1,2,2]);
immutable m = gammaLikelihood!double(1,3,[1,2],[2,4]);
assert(l == m);

Meta