DiffSharp


Random Type

Namespace: DiffSharp

Assembly: DiffSharp.Core.dll


Parent Module: Util

Base Type: obj

Constructors

Constructor Description
Random()
Full Usage:
Random()
Return Type: Random
Signature: unit -> Random
Return Type: Random

Static members

Static member Description
Random.Bernoulli()
Full Usage:
Random.Bernoulli()
Return Type: float<MeasureOne>
Signature: unit -> float<MeasureOne>
Return Type: float<MeasureOne>
Random.Bernoulli(prob)
Full Usage:
Random.Bernoulli(prob) Parameter Types:
  • prob : float

Return Type: float<MeasureOne>
Signature: (prob: float) -> float<MeasureOne>
Parameter Types:
  • prob : float
Return Type: float<MeasureOne>
Random.Choice(array, probs)
Full Usage:
Random.Choice(array, probs) Parameter Types:
  • array : 'a []
  • probs : float []

Return Type: 'a
Signature: (array: 'a [] * probs: float []) -> 'a
Parameter Types:
  • array : 'a []
  • probs : float []
Return Type: 'a
Random.Choice(array)
Full Usage:
Random.Choice(array) Parameter Types:
  • array : 'a []

Return Type: 'a
Signature: (array: 'a []) -> 'a
Parameter Types:
  • array : 'a []
Return Type: 'a
Random.ChoiceIndex(probs)
Full Usage:
Random.ChoiceIndex(probs) Parameter Types:
  • probs : float []

Return Type: int
Signature: (probs: float []) -> int
Parameter Types:
  • probs : float []
Return Type: int
Random.Integer(low, high)
Full Usage:
Random.Integer(low, high) Parameter Types:
  • low : int
  • high : int

Return Type: int
Signature: (low: int * high: int) -> int
Parameter Types:
  • low : int
  • high : int
Return Type: int
Random.Multinomial(probs, numSamples)
Full Usage:
Random.Multinomial(probs, numSamples) Parameter Types:
  • probs : float [,]
  • numSamples : int

Return Type: int [,]
Signature: (probs: float [,] * numSamples: int) -> int [,]
Parameter Types:
  • probs : float [,]
  • numSamples : int
Return Type: int [,]
Random.Multinomial(probs, numSamples)
Full Usage:
Random.Multinomial(probs, numSamples) Parameter Types:
  • probs : float []
  • numSamples : int

Return Type: int []
Signature: (probs: float [] * numSamples: int) -> int []
Parameter Types:
  • probs : float []
  • numSamples : int
Return Type: int []
Random.Normal(mean, stddev)
Full Usage:
Random.Normal(mean, stddev) Parameter Types:
  • mean : float
  • stddev : float

Return Type: float
Signature: (mean: float * stddev: float) -> float
Parameter Types:
  • mean : float
  • stddev : float
Return Type: float
Random.Normal()
Full Usage:
Random.Normal()
Return Type: float
Signature: unit -> float
Return Type: float
Random.Seed(seed)
Full Usage:
Random.Seed(seed) Parameter Types:
  • seed : int

Signature: (seed: int) -> unit
Parameter Types:
  • seed : int
Random.Shuffle(array)
Full Usage:
Random.Shuffle(array) Parameter Types:
  • array : 'a []

Return Type: 'a []
Signature: (array: 'a []) -> 'a []
Parameter Types:
  • array : 'a []
Return Type: 'a []
Random.Uniform(low, high)
Full Usage:
Random.Uniform(low, high) Parameter Types:
  • low : float
  • high : float

Return Type: float
Signature: (low: float * high: float) -> float
Parameter Types:
  • low : float
  • high : float
Return Type: float
Random.Uniform()
Full Usage:
Random.Uniform()
Return Type: float
Signature: unit -> float
Return Type: float