NSSDNResult._from_fit#

classmethod NSSDNResult._from_fit(fit, model)[source]#

Assemble the public result from a raw fit and its specification.

Parameters:
  • fit (_SpectralFit) – The record _fit_family packed: paths, one-step fit, likelihood, history and predictor.

  • model (_SpectralDecompositionModel[NSSDNResult]) – The specification the fit came from; supplies the data and every option the result reports.

Return type:

NSSDNResult

Returns:

The frozen result.