LikelihoodAscent.optimize

Performs optimization.

  1. void optimize(bool delegate(T likelihoodValuePrev, T likelihoodValue, in T[] weightsPrev, in T[] weights) tolerance, bool delegate(T a, T b) @(nogc) nothrow findRootTolerance)
  2. void optimize(bool delegate(T likelihoodValuePrev, T likelihoodValue) tolerance, bool delegate(T a, T b) @(nogc) nothrow findRootTolerance)
    interface LikelihoodAscent(T)
    void
    optimize
    (,
    scope bool delegate
    (
    T a
    ,
    T b
    )
    @nogc nothrow
    findRootTolerance = null
    )
    if (
    isFloatingPoint!T
    )

Parameters

tolerance bool delegate

Defines an early termination condition. Receives the current and previous versions of normalized log-likelihood. The delegate must return true when likelihood are acceptable.

findRootTolerance bool delegate
(
T a
,
T b
)
@nogc nothrow

Tolerance for inner optimization.

Throws

See Also

$(STDREF numeric, findRoot)

Meta