Package-level declarations

Functions

Link copied to clipboard

Appends the family-frequency bootstrap result (continuous; no-op when absent) — how often each family was the recommended fit across bootstrap resamples. This is a separate, opt-in analysis, so the section appears only when present.

Link copied to clipboard

Appends the bootstrap parameter summaries for one fit (no-op when absent).

Link copied to clipboard

Appends the cross-dataset summary: one row per dataset giving the recommended family, the recommended fit's parameters, and the kind-appropriate quality statistic (MODA weighted value for continuous, chi-squared p-value for discrete), plus a failures table when any entry failed. This is the single new report the batch path contributes; all per-dataset content reuses the DTO-driven sections.

Link copied to clipboard

Appends the data statistical summary as a Property/Value table.

Link copied to clipboard

Appends the dataset-level dispersion analysis (discrete path; no-op when absent).

Link copied to clipboard

Appends the four fit-quality plots for one fit, reconstructed from the fitted distribution and the supplied raw data. No-op when the fit failed, the family cannot be reconstructed, or the distribution build returns null.

Link copied to clipboard

Appends the ranked list of fitted distributions as a single table.

Link copied to clipboard

Appends the goodness-of-fit detail for one fit (no-op when absent).

Link copied to clipboard

Appends the integer-frequency distribution (discrete path; no-op when absent).

Link copied to clipboard

Appends the full MODA scoring detail as a set of flat tables.

Link copied to clipboard

Appends the left-shift analysis (continuous path; no-op when absent).

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

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.

Link copied to clipboard

Builds a standalone document for a FamilyFrequencyResult (the Bootstrap-tab analysis).

fun BatchFitResultData.toDocument(title: String? = null, includePerDataset: Boolean = false): ReportNode.Document

Builds the batch report document: the cross-dataset summary, and — when includePerDataset is true — a section per successful dataset reusing the single-result DTO-driven sections (data summary, ranked fits, MODA, and the recommended fit's goodness of fit). Per-dataset plots are not rendered here (the batch result carries no raw data); a caller holding a dataset's data can build that dataset's full document via FitResultData.toDocument.

fun FitResultData.toDocument(rawData: DoubleArray? = null, title: String? = null, catalog: FittingCatalog = FittingCatalog, allGoodnessOfFit: Boolean = false): ReportNode.Document

Builds the full report document from this result. Tables are always included; the goodness-of-fit detail and bootstrap summaries are added for the recommended fit (or every successful fit when allGoodnessOfFit is true); the four fit plots are added only when rawData is supplied.

Link copied to clipboard

Builds a lightweight, plot-free summary document: data summary, the ranked fits table, and the MODA scoring tables. Renders deterministically from the DTO with no plot files. Use for an immediate in-app or console preview.