Mixed

vecxt_re.Mixed
See theMixed companion class
object Mixed

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Mixed.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

inline def fromValues(values: Array[Double], mixingPoint: Double, paretoShape: Double): Mixed

Create a mixed distribution from raw empirical data.

Create a mixed distribution from raw empirical data.

Value parameters

mixingPoint

The threshold between body and tail

paretoShape

The Pareto shape parameter for the tail

values

The empirical sample values

Attributes

inline def fromWeightedValues(values: Array[Double], weights: Array[Double], mixingPoint: Double, paretoShape: Double): Mixed

Create a mixed distribution from weighted empirical data.

Create a mixed distribution from weighted empirical data.

Value parameters

mixingPoint

The threshold between body and tail

paretoShape

The Pareto shape parameter for the tail

values

The empirical sample values

weights

The weights for each sample value

Attributes

Givens

Givens

given mixedDecoder: Decoder[Mixed]
given mixedEncoder: Encoder[Mixed]

JSON codec. Only the distribution parameters (empirical, mixingPoint, paretoShape) are written; derived state (body/tail weights, Pareto tail, RNG) is rebuilt on decode. Constructor validation failures surface as a io.circe.DecodingFailure.

JSON codec. Only the distribution parameters (empirical, mixingPoint, paretoShape) are written; derived state (body/tail weights, Pareto tail, RNG) is rebuilt on decode. Constructor validation failures surface as a io.circe.DecodingFailure.

Attributes