Description Usage Arguments Value Note Author(s) References See Also Examples
Percent Bias in the slope of the midsegment of the flow duration curve (FDC) [%]. It is related to the vertical soil moisture redistribution.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | pbiasfdc(sim, obs, ...)
## Default S3 method:
pbiasfdc(sim, obs, lQ.thr=0.7, hQ.thr=0.2, na.rm=TRUE,
plot=TRUE, verbose=FALSE, ...)
## S3 method for class 'data.frame'
pbiasfdc(sim, obs, lQ.thr=0.7, hQ.thr=0.2, na.rm=TRUE,
plot=TRUE, verbose=FALSE, ...)
## S3 method for class 'matrix'
pbiasfdc(sim, obs, lQ.thr=0.7, hQ.thr=0.2, na.rm=TRUE,
plot=TRUE, verbose=FALSE, ...)
## S3 method for class 'zoo'
pbiasfdc(sim, obs, lQ.thr=0.7, hQ.thr=0.2, na.rm=TRUE,
plot=TRUE, verbose=FALSE, ...)
|
sim |
numeric, zoo, matrix or data.frame with simulated values |
obs |
numeric, zoo, matrix or data.frame with observed values |
lQ.thr |
numeric, used to classify low flows. All the streamflows with a probability of exceedence larger or equal to |
hQ.thr |
numeric, used to classify high flows. All the streamflows with a probability of exceedence larger or equal to |
na.rm |
a logical value indicating whether 'NA' values should be stripped before the computation proceeds. |
plot |
a logical value indicating if the flow duration curves corresponding to |
verbose |
logical; if TRUE, progress messages are printed |
... |
further arguments passed to the fdc function of the hydroTSM package or from other methods. |
Percent Bias in the slope of the midsegment of the flow duration curve, between sim
and obs
.
If sim
and obs
are matrixes, the returned value is a vector, with the Percent Bias in the slope of the midsegment of the flow duration curve, between each column of sim
and obs
.
The result is given in percentage (%).
It requires the hydroTSM package.
Mauricio Zambrano Bigiarini <mzb.devel@gmail.com>
Yilmaz, K. K., H. V. Gupta, and T. Wagener (2008), A process-based diagnostic approach to model evaluation: Application to the NWS distributed hydrologic model, Water Resour. Res., 44, W09417, doi:10.1029/2007WR006716
Yilmaz, K. K., H. V. Gupta, and T. Wagener (2008), A process-based diagnostic approach to model evaluation: Application to the NWS distributed hydrologic model, Water Resour. Res., 44, W09417, doi:10.1029/2007WR006716
fdc, gof
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## Not run:
sim <- 1:10
obs <- 1:10
pbiasfdc(sim, obs)
sim <- 2:11
obs <- 1:10
pbiasfdc(sim, obs)
##################
# Loading daily streamflows of the Ega River (Spain), from 1961 to 1970
data(EgaEnEstellaQts)
obs <- EgaEnEstellaQts
# Generating a simulated daily time series, initially equal to the observed series
sim <- obs
# Computing the relative index of agreement for the "best" (unattainable) case
pbiasfdc(sim=sim, obs=obs)
# Randomly changing the first 2000 elements of 'sim', by using a normal distribution
# with mean 10 and standard deviation equal to 1 (default of 'rnorm').
sim[1:2000] <- obs[1:2000] + rnorm(2000, mean=10)
# Computing the new relative index of agreement
pbiasfdc(sim=sim, obs=obs, col=c("black", "blue"))
## End(Not run)
|
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
[Note: 'thr.shw' was set to FALSE to avoid confusing legends...]
[1] 0
[Note: 'thr.shw' was set to FALSE to avoid confusing legends...]
[1] -14.52444
[Note: 'thr.shw' was set to FALSE to avoid confusing legends...]
[1] 0
[Note: 'thr.shw' was set to FALSE to avoid confusing legends...]
[1] -42.5512
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.