compare

fun compare(trueWeights: DoubleArray, trueComponents: List<ContinuousDistributionIfc>, trueTypes: List<RVParametersTypeIfc>, fittedWeights: DoubleArray, fittedComponents: List<ContinuousDistributionIfc>, fittedTypes: List<RVParametersTypeIfc>, numPoints: Int = DensityQuadrature.defaultNumQuadraturePoints): RecoveryResult(source)

Compares a fitted mixture against the truth.

Parameters

trueWeights

the true mixing weights

trueComponents

the true components

trueTypes

the true component families

fittedWeights

the fitted mixing weights

fittedComponents

the fitted components

fittedTypes

the fitted component families

numPoints

the number of quadrature points