Solutions

DataDrivenDiffEq.DataDrivenSolutionType
struct DataDrivenSolution{T} <: DataDrivenDiffEq.AbstractDataDrivenSolution

The solution to a DataDrivenProblem derived via a certain algorithm. The solution is represented via an Basis, which makes it callable.

Fields

  • basis: The basis representation of the solution

  • retcode: Returncode

  • alg: Algorithm

  • out: Original output of the solution algorithm

  • prob: Problem

  • residuals: Residual sum of squares

  • dof: Degrees of freedom

  • internal_problem: Internal problem

source
DataDrivenDiffEq.DDReturnCodeType
DDReturnCode

Return code for DataDrivenDiffEq solver results.

The values indicate successful convergence, generic failure, and termination due to iteration, wall-time, absolute-tolerance, or relative-tolerance limits.

source

API

Statistical interface

StatsAPI.dofMethod
dof(sol)

Returns the degrees of freedom of the DataDrivenSolution.

source
StatsAPI.rssMethod
rss(sol)

Returns the residual sum of squares of the DataDrivenSolution.

source
StatsAPI.loglikelihoodMethod
loglikelihood(sol)

Returns the log-likelihood of the DataDrivenSolution assuming a normal distributed error.

source
StatsAPI.nobsMethod
nobs(sol)

Returns the number of observations of the DataDrivenSolution.

source
StatsAPI.nullloglikelihoodMethod
nullloglikelihood(sol)

Return the null log-likelihood of the DataDrivenSolution. This corresponds to a model only fitted with an intercept and a normal distributed error.

source