Commit da38d880 authored by Nicolas Rodriguez's avatar Nicolas Rodriguez

Upload New File

parent 145b3f7b
%
% Copyright 2019-2020 LIST (Luxembourg Institute of Science and Technology), all right reserved.
%
% Author: Nicolas Rodriguez (nicolas.bjorn.rodriguez@gmail.com)
%
function [NS,RMSE]=NSE_virtual(obs,sim_column)
[~,c]=size(obs);
sim=repmat(sim_column,[1,c]);
var_res=1/(length(obs)-1)*sum((sim-obs).^2);
RMSE=sqrt(var_res);
NS=1-var_res./var(obs);
end
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment