https://git.exeter.ac.uk/mv286/kndy-parameter-inference
Raw File
Tip revision: f5585f5f09d62a2569d21def31dc779774bc2476 authored by mv286 on 15 July 2021, 12:46:14 UTC
Deleting README.md
Tip revision: f5585f5
model_distance.m
% This is a function that takes the following parameters
% - Y: data.
% - X: model prediction 
% - params: structure containing the model parameters
% The function returns the distance between the data and the model
function d = model_distance(Y , X, params) 

d = sum(abs(Y-X));

back to top