DiffSharp


Empirical<'T> Type

Namespace: DiffSharp.Distributions

Assembly: DiffSharp.Core.dll


Base Type: Distribution<'T>

Constructors

Constructor Description
Empirical(values, ?weights, ?logWeights, ?combineDuplicates)
Full Usage:
Empirical(values, ?weights, ?logWeights, ?combineDuplicates) Parameter Types:
  • values : seq<'T>
  • ?weights : Tensor
  • ?logWeights : Tensor
  • ?combineDuplicates : bool

Return Type: Empirical<'T>
Signature: (values: seq<'T> * weights: Tensor * logWeights: Tensor * combineDuplicates: bool) -> Empirical<'T>
Parameter Types:
  • values : seq<'T>
  • ?weights : Tensor
  • ?logWeights : Tensor
  • ?combineDuplicates : bool
Return Type: Empirical<'T>

Instance members

Instance member Description
this.GetSlice(start, finish)
Full Usage:
this.GetSlice(start, finish) Parameter Types:
  • start : int option
  • finish : int option

Return Type: Empirical<'T>
Signature: (start: int option * finish: int option) -> Empirical<'T>
Parameter Types:
  • start : int option
  • finish : int option
Return Type: Empirical<'T>
this.[i]
Full Usage:
this.[i] Parameter Types:
  • i : int

Return Type: 'T * Tensor
Signature: i: int -> 'T * Tensor
Parameter Types:
  • i : int
Return Type: 'T * Tensor
this.combineDuplicates()
Full Usage:
this.combineDuplicates()
Return Type: Empirical<'T>
Signature: unit -> Empirical<'T>
Return Type: Empirical<'T>
this.effectiveSampleSize
Full Usage:
this.effectiveSampleSize
Return Type: Tensor
Signature: Tensor
Return Type: Tensor
this.expectation f
Full Usage:
this.expectation f Parameter Types:
  • f : Tensor -> Tensor

Return Type: Tensor
Signature: (f: (Tensor -> Tensor)) -> Tensor
Parameter Types:
  • f : Tensor -> Tensor
Return Type: Tensor
this.filter predicate
Full Usage:
this.filter predicate Parameter Types:
  • predicate : 'T -> bool

Return Type: Empirical<'T>
Signature: (predicate: ('T -> bool)) -> Empirical<'T>
Parameter Types:
  • predicate : 'T -> bool
Return Type: Empirical<'T>
this.isWeighted
Full Usage:
this.isWeighted
Return Type: bool
Signature: bool
Return Type: bool
this.length
Full Usage:
this.length
Return Type: int
Signature: int
Return Type: int
this.logWeights
Full Usage:
this.logWeights
Return Type: Tensor
Signature: Tensor
Return Type: Tensor
this.map f
Full Usage:
this.map f Parameter Types:
  • f : 'T -> 'a

Return Type: Empirical<'a>
Signature: (f: ('T -> 'a)) -> Empirical<'a>
Parameter Types:
  • f : 'T -> 'a
Return Type: Empirical<'a>
this.max
Full Usage:
this.max
Return Type: Tensor
Signature: Tensor
Return Type: Tensor
this.mean
Full Usage:
this.mean
Return Type: Tensor
Signature: Tensor
Return Type: Tensor
this.min
Full Usage:
this.min
Return Type: Tensor
Signature: Tensor
Return Type: Tensor
this.mode
Full Usage:
this.mode
Return Type: 'T
Signature: 'T
Return Type: 'T
this.resample(numSamples, ?minIndex, ?maxIndex)
Full Usage:
this.resample(numSamples, ?minIndex, ?maxIndex) Parameter Types:
  • numSamples : int
  • ?minIndex : int
  • ?maxIndex : int

Return Type: Empirical<'T>
Signature: (numSamples: int * minIndex: int * maxIndex: int) -> Empirical<'T>
Parameter Types:
  • numSamples : int
  • ?minIndex : int
  • ?maxIndex : int
Return Type: Empirical<'T>
this.sample(?minIndex, ?maxIndex)
Full Usage:
this.sample(?minIndex, ?maxIndex) Parameter Types:
  • ?minIndex : int
  • ?maxIndex : int

Return Type: 'T
Signature: (minIndex: int * maxIndex: int) -> 'T
Parameter Types:
  • ?minIndex : int
  • ?maxIndex : int
Return Type: 'T
this.stddev
Full Usage:
this.stddev
Return Type: Tensor
Signature: Tensor
Return Type: Tensor
this.thin(numSamples, ?minIndex, ?maxIndex)
Full Usage:
this.thin(numSamples, ?minIndex, ?maxIndex) Parameter Types:
  • numSamples : int
  • ?minIndex : int
  • ?maxIndex : int

Return Type: Empirical<'T>
Signature: (numSamples: int * minIndex: int * maxIndex: int) -> Empirical<'T>
Parameter Types:
  • numSamples : int
  • ?minIndex : int
  • ?maxIndex : int
Return Type: Empirical<'T>
this.unweighted()
Full Usage:
this.unweighted()
Return Type: Empirical<'T>
Signature: unit -> Empirical<'T>
Return Type: Empirical<'T>
this.values
Full Usage:
this.values
Return Type: 'T []
Signature: 'T []
Return Type: 'T []
this.valuesTensor
Full Usage:
this.valuesTensor
Return Type: Tensor
Signature: Tensor
Return Type: Tensor
this.variance
Full Usage:
this.variance
Return Type: Tensor
Signature: Tensor
Return Type: Tensor
this.weights
Full Usage:
this.weights
Return Type: Tensor
Signature: Tensor
Return Type: Tensor