Goodness of fit between test and reference data for analysis and validation of identified models
goodnessOfFit
returns fit values that represent the error
norm between test and reference data sets. If you want to compare and visualize simulated
model output with measurement data, see also compare
.
returns the goodness of fit between the test data fit
= goodnessOfFit(x
,xref
,cost_func
)x
and the reference
data xref
using the cost function cost_func
.
fit
is a quantitative representation of the closeness of
x
to xref
. To perform multiple test-to-reference
fit comparisons, you can specify x
and xref
as
cell arrays of equal size that contain multiple test and reference data sets. With cell
array inputs, fit
returns an array of fit values.