Location: The cardiac Na+ /K+ ATPase: An updated, thermodynamically consistent model @ 048846209253 / Code / MATLAB / code / dataset_functions / relative_squared_error.m

Author:
AnandR <a.rampadarath@auckland.ac.nz>
Date:
2019-02-14 18:10:07+13:00
Desc:
Validated models and annotated using semgen
Permanent Source URI:
https://models.cellml.org/workspace/579/rawfile/04884620925328bb8adc1473d94d03f64b63f528/Code/MATLAB/code/dataset_functions/relative_squared_error.m

function answer = relative_squared_error(data_value,model_value)
    relative_error = (model_value-data_value)/data_value;
    answer = relative_error^2;
end