package podge

  1. Overview
  2. Docs

Module Podge.MathSource

Sourcetype 'a nums =
  1. | Int : int nums
  2. | Float : float nums
Sourceval random_array : int -> 't nums -> 't array
Sourceval derivative : f:(float -> float) -> float -> float
Sourceval linear_regression : xs:float array -> ys:float array -> float -> float
Sourceval pow : base:int -> int -> int
Sourceval log2 : float -> float
Sourceval bit_string_of_int : int -> string
Sourceval bit_string_of_string : string -> string
Sourceval sum_int_list : int list -> int
Sourceval sum_float_list : float list -> float
Sourceval pi : float
Sourceval range : ?chunk:int -> from:int -> int -> int list
Sourceval validate_prob : float -> unit
Sourceval entropy : float list -> float

Computes the entropy from a list of probabilities

Sourceval self_information : float -> float

Represents the number of bits of information contained in this message, roughly how many number of bits we should encode this message with. The less likely an event is to occur, the more information we can say actually is contained in the event

Sourceval distance : float list -> float list -> float
OCaml

Innovation. Community. Security.