inverseGammaLikelihood

Normalized log-likelihood function of the inverse-gamma distribution.

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

Examples

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

Meta