Base.Stats

This document is auto-generated for Owl’s APIs. #50 entries have been extracted.

Github: {Signature} {Implementation}

Randomisation functions

val shuffle : 'a array -> 'a array

Refer to Stats.

source code

val choose : 'a array -> int -> 'a array

Refer to Stats.

source code

val sample : 'a array -> int -> 'a array

Refer to Stats.

source code

Basic statistical functions

type histogram = {
  bins              : float array;
  counts            : int array;
  weighted_counts   : float array option;
  normalised_counts : float array option;
  density           : float array option
  }

Refer to Stats.

val sum : float array -> float

Refer to Stats.

source code

val mean : float array -> float

Refer to Stats.

source code

val var : ?mean:float -> float array -> float

Refer to Stats.

source code

val std : ?mean:float -> float array -> float

Refer to Stats.

source code

val sem : ?mean:float -> float array -> float

Refer to Stats.

source code

val absdev : ?mean:float -> float array -> float

Refer to Stats.

source code

val skew : ?mean:float -> ?sd:float -> float array -> float

Refer to Stats.

source code

val kurtosis : ?mean:float -> ?sd:float -> float array -> float

Refer to Stats.

source code

val central_moment : int -> float array -> float

Refer to Stats.

source code

val cov : ?m0:float -> ?m1:float -> float array -> float array -> float

Refer to Stats.

source code

val concordant : 'a array -> 'b array -> int

Refer to Stats.

source code

val discordant : 'a array -> 'b array -> int

Refer to Stats.

source code

val kendall_tau : float array -> float array -> float

Refer to Stats.

source code

val min : float array -> float

Refer to Stats.

source code

val max : float array -> float

Refer to Stats.

source code

val minmax : float array -> float * float

Refer to Stats.

source code

val min_i : float array -> int

Refer to Stats.

source code

val max_i : float array -> int

Refer to Stats.

source code

val minmax_i : float array -> int * int

Refer to Stats.

source code

val sort : ?inc:bool -> float array -> float array

Refer to Stats.

source code

val argsort : ?inc:bool -> float array -> int array

Refer to Stats.

source code

val rank : ?ties_strategy:[ `Average | `Min | `Max ] -> float array -> float array

Refer to Stats.

source code

val percentile : float array -> float -> float

Refer to Stats.

source code

val quantile : float array -> float -> float

Refer to Stats.

source code

val first_quartile : float array -> float

Refer to Stats.

val third_quartile : float array -> float

Refer to Stats.

val interquartile : float array -> float

Refer to Stats.

source code

val median : float array -> float

Refer to Stats.

source code

val histogram_sorted : [ `Bins of float array | `N of int ] -> ?weights:float array -> float array -> histogram

Refer to Stats.

source code

val normalise : histogram -> histogram

Refer to Stats.

source code

val normalise_density : histogram -> histogram

Refer to Stats.

source code

val pp_hist: Format.formatter -> histogram -> unit

Refer to Stats.

val tukey_fences : ?k:float -> float array -> float * float

Refer to Stats.

source code

val gaussian_kde : ?bandwidth:[ `Silverman | `Scott ] -> ?n_points:int -> float array -> (float array * float array)

Refer to Stats.

source code

Random variables

val uniform_rvs : a:float -> b:float -> float

Refer to Stats.

source code

val bernoulli_rvs : p:float -> float

Refer to Stats.

source code

val gaussian_rvs : mu:float -> sigma:float -> float

Refer to Stats.

source code

val exponential_rvs : lambda:float -> float

Refer to Stats.

source code

val cauchy_rvs : loc:float -> scale:float -> float

Refer to Stats.

source code

val std_gamma_rvs : shape:float -> float

Refer to Stats.

source code

val gamma_rvs : shape:float -> scale:float -> float

Refer to Stats.

source code

val gumbel1_rvs : a:float -> b:float -> float

Refer to Stats.

source code

val gumbel2_rvs : a:float -> b:float -> float

Refer to Stats.

source code