WeightedDirichlet(Number[] conc, Integer[] weights, Number mean)

The scaled dirichlet probability distribution. The weighted mean of values must equal to the expected weighted mean (default to 1).

Parameters

  • Number[] conc - the concentration parameters of the scaled Dirichlet distribution.
  • Integer[] weights - the relative weight parameters of the scaled Dirichlet distribution.
  • Number mean - (optional) the expected weighted mean of the values, default to 1.

Return type

Double[]

Examples

  • totalEvidence.lphy
  • weightedDirichlet.lphy