Sha256: f06bd747992179590e14f89c203700c1adba2ef722db65d52bd956f276222aa8

Contents?: true

Size: 589 Bytes

Versions: 4

Compression:

Stored size: 589 Bytes

Contents

module Mopti
  class NelderMead
    include Enumerable[untyped]

    @fnc: Method | Proc

    def initialize: (fnc: Method | Proc fnc,
                     x_init: Numo::DFloat x_init, ?args: untyped? args, ?max_iter: Integer? max_iter,
                     ?xtol: Float xtol, ?ftol: Float ftol) -> void

    # def each: () { (x: Numo::DFloat, n_fev: Integer, n_iter: Integer, fnc: Float) -> untyped } -> untyped
    def each: () { (untyped) -> untyped } -> untyped

    private

    NON_ZERO_TAU: Float
    ZERO_TAU: Float

    def func: (Numo::DFloat x, untyped args) -> Float
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mopti-0.2.3 sig/mopti/nelder_mead.rbs
mopti-0.2.2 sig/mopti/nelder_mead.rbs
mopti-0.2.1 sig/mopti/nelder_mead.rbs
mopti-0.2.0 sig/mopti/nelder_mead.rbs