Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The names of the product elements.
Attributes
- Inherited from:
- Mirror
The name of the type.
The name of the type.
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Construct an unweighted empirical distribution (all weights equal to $1$).
Construct an unweighted empirical distribution (all weights equal to $1$).
Note: We intentionally avoid apply overloads here because IArray[Double] erases to Array[Double] on the JVM, which can create signature collisions with the case class companion methods.
Attributes
Givens
Givens
JSON codec. Only the defining parameters (values, weights) are written; derived state (sorted support, CDF table, RNG) is rebuilt on decode. Constructor validation failures surface as a io.circe.DecodingFailure.
JSON codec. Only the defining parameters (values, weights) are written; derived state (sorted support, CDF table, RNG) is rebuilt on decode. Constructor validation failures surface as a io.circe.DecodingFailure.