Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
catchment-eco-hydro
Virtual_catchment_transient_ages
Commits
da38d880
Commit
da38d880
authored
Jan 24, 2020
by
Nicolas Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
145b3f7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
NSE_virtual.m
NSE_virtual.m
+12
-0
No files found.
NSE_virtual.m
0 → 100644
View file @
da38d880
%
% 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment