extractDiscrete

fun extractDiscrete(dataset: NamedDataset, modeler: PMFModeler, estimationResults: List<EstimationResult>, resultToId: Map<EstimationResult, String>, catalog: FittingCatalog, includeStandardReport: Boolean = false): FitResultData(source)

Builds the result DTO graph for a discrete fit. Mirrors the engine's intentional PDF/PMF asymmetry: there is no MODA scoring — fits are ranked by chi-squared p-value (higher is a better fit) — and no histogram or bootstrap. Each successful fit carries a discrete GoodnessOfFitDTO (chi-squared plus the dispersion statistics).

Parameters

resultToId

maps each estimation result to its catalog estimator ID