toCanonicalDocument

fun FitResultData.toCanonicalDocument(rawData: DoubleArray, title: String? = null, catalog: FittingCatalog = FittingCatalog, confidenceLevel: Double = 0.95, allGoodnessOfFit: Boolean = false): ReportNode.Document(source)

Renders the canonical engine report from this result plus the client's raw data, via the same report extensions a live PDFModeler/PMFModeler uses — so a remote client holding only the DTO reproduces the standard report. The stochastic bootstrap quantities are served from carried snapshots (the DTO adapters never recompute), so this render is deterministic; it will not byte-match a live render, which still recomputes bootstrap during its build.

Parameters

rawData

the client's original observations for this dataset

title

document title; defaults to the dataset name

catalog

maps a fit's family back to a distribution for reconstruction

confidenceLevel

confidence level for the property sheet and GOF tests

allGoodnessOfFit

when true, GOF covers every successful fit; otherwise the top one