asHTML

fun MixtureModelingResults.asHTML(heldOut: DoubleArray? = null, title: String = "Mixture Modeling Results", bootstrap: MixtureBootstrapResults? = null, includePlots: Boolean = true, description: MixtureDataDescription? = null, hasMechanism: Boolean = false, stability: PartitionStability? = null, adequacy: FitAdequacy? = null, variableName: String = "observed value"): String(source)

The standard report as a self-contained HTML page.

Replaces a hand-built page that wrapped the console summary in a preformatted block. That form was readable and structurally empty — a renderer could not turn its tables into tables — so the page is now rendered from the same document every other format comes from. Plots are embedded in the page rather than written beside it, so the result is one file that can be sent as it is.

Parameters

heldOut

observations the fit has not seen, used for the coverage check

title

the document title

bootstrap

resampling results, when the caller has run them

includePlots

whether to include the diagnostic panels

description

the pre-fit characterisation, when the caller has taken one

hasMechanism

whether the analyst has a priori reason to believe in a mixing mechanism

stability

the cut-displacement measurement, when the caller has run it

adequacy

whether the fitted density reproduces its sample, when the caller has assessed it. Omitted from the document when absent.