package prbnmcn-dagger-test

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

Innovation. Community. Security.