Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
A module for int
weights using Random.int
to sample random integers.
A total ordering function over weights. compare x y
should return zero if the weights x
and y
are equal, compare x y
should be negative if x
is less than y
, and compare x y
should be positive if x
is greater than y
.
val zero : t
Weight zero value. It should be the case that forall x
, add x zero = x
.
Weight subtraction. It should be the inverse of add
, i.e. forall x
and y
, sub (add x y) y
equals x
.