FitSpec

sealed class FitSpec(source)

Type-safe job spec for a distribution-fitting request, parallel to ksl.app.RunSpec. Cardinality (single vs. batch) is encoded in the variant rather than a flag, so a downstream session can dispatch by exhaustive when without re-validating which fields are present.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class Batch(val configs: List<NamedFitConfiguration>) : FitSpec

Fit many named datasets, each with its own configuration. A multi-dataset source sharing one analysis configuration can be turned into a Batch via BatchFittingRunner.expand; heterogeneous batches (different sources/settings per entry) are constructed directly.

Link copied to clipboard
data class Single(val config: FitConfiguration) : FitSpec

Fit one dataset using one analysis configuration.