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

API

Additionally, DataDrivenDiffEq.jl extends the following methods for a DataDrivenSolution.

StatsAPI.dofFunction
dof(sol)

Returns the degrees of freedom of the DataDrivenSolution.

source
StatsAPI.rssFunction
rss(sol)

Returns the residual sum of squares of the DataDrivenSolution.

source
StatsAPI.nobsFunction
nobs(sol)

Returns the number of observations of the DataDrivenSolution.

source
StatsAPI.loglikelihoodFunction
loglikelihood(sol)

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

source
StatsAPI.nullloglikelihoodFunction
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