Module Incremental_step_function
An 'a Step_function.t is a function from Time_ns.t to 'a.
val sexp_of_t : ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t
include Core_kernel.Invariant.S1 with type 'a t := 'a t
val invariant : 'a Base__.Invariant_intf.inv -> 'a t Base__.Invariant_intf.inv
val init : 'a t -> 'aval steps : 'a t -> (Core_kernel.Time_ns.t * 'a) Core_kernel.Sequence.tval value : 'a t -> at:Core_kernel.Time_ns.t -> 'aval constant : 'a -> 'a tconstant ais the step functiontwithvalue t ~at = afor allat.
val create_exn : init:'a -> steps:(Core_kernel.Time_ns.t * 'a) list -> 'a tcreate_exn ~init ~steps:[(t_1, v_1); ...; (t_n, vn)]is the step functiontwithvalue t ~at = initforat < t_1,value t ~at = vifort_i <= at < t_i+1.create_exnraises if the times aren't in nondecreasing order, i.e. if for somei < j,ti > tj.
val create_from_sequence : init:'a -> steps:(Core_kernel.Time_ns.t * 'a) Core_kernel.Sequence.t -> 'a t