Goodness of fit between test and reference data
fit = goodnessOfFit(x,xref,cost_func)
returns
the goodness of fit between the data, fit
= goodnessOfFit(x
,xref
,cost_func
)x
, and
the reference, xref
using a cost function specified
by cost_func
.

Test data.


Reference data.


Cost function to determine goodness of fit.


Goodness of fit between test and reference data. For a single test data set and reference pair,
If 