Raw File
Tip revision: f5585f5f09d62a2569d21def31dc779774bc2476 authored by mv286 on 15 July 2021, 12:46:14 UTC
Tip revision: f5585f5
% 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