package prbnmcn-dagger-test

  1. Overview
  2. Docs

Module Poly.SmcSource

Sourcetype 'a t
Sourceval return : 'a -> 'a t
Sourceval bind : 'a t -> ('a -> 'b t) -> 'b t
Sourceval map : 'a t -> ('a -> 'b) -> 'b t
Sourceval map2 : 'a t -> 'b t -> ('a -> 'b -> 'c) -> 'c t
Sourceval map_array : 'a t array -> ('a array -> 'b) -> 'b t
Sourceval if_ : bool t -> (bool -> 'a t) -> 'a t
Sourcemodule Infix : sig ... end
Sourcetype !'a dist = Random.State.t -> 'a
Sourceval sample : 'a dist -> 'a t
Sourceval map_score : 'a t -> ('a -> float) -> 'a t
Sourceval map_log_score : 'a t -> ('a -> Dagger.Log_space.t) -> 'a t
Sourceval score : float -> unit t
Sourceval log_score : Dagger.Log_space.t -> unit t
Sourcemodule List_ops : sig ... end
Sourcemodule Array_ops : sig ... end
Sourcemodule Seq_ops : sig ... end
Sourcetype particle_output = Smc_types.particle_output
Sourcetype resampling_state = Smc_types.resampling_state
Sourceval fork : int -> unit t
Sourceval get_score : Dagger.Log_space.t t
Sourceval set_score : Dagger.Log_space.t -> unit t
Sourcetype !'a population = {
  1. terminated : ('a * float) array;
  2. active : (particle_output * float) array;
  3. total_mass : float;
}
Sourceexception Invalid_population
Sourceval run : ?nthreads:int -> (particle_output, float, resampling_state) Dagger.Resampling.strategy -> resampling_state -> npart:int -> 'a t -> Dagger.RNG.t -> 'a population Seq.t
Sourceval run_custom : ?nthreads:int -> (particle_output, float, resampling_state) Dagger.Resampling.strategy -> resampling_state -> npart:int -> (int -> 'a t) -> Dagger.RNG.t -> 'a population Seq.t
OCaml

Innovation. Community. Security.