Skip to content
Snippets Groups Projects
Commit 312530e4 authored by Mauricio Zambrano-Bigiarini's avatar Mauricio Zambrano-Bigiarini
Browse files

plot\_NparOF.R: added checking for 'beh.thr'

parent e19aa68c
No related branches found
No related tags found
No related merge requests found
...@@ -109,6 +109,8 @@ NEWS/ChangeLog for hydroPSO ...@@ -109,6 +109,8 @@ NEWS/ChangeLog for hydroPSO
-) argument 'sim' may also be 'integer' (before it had to be 'numeric', which does not allow 'integer' objects !) -) argument 'sim' may also be 'integer' (before it had to be 'numeric', which does not allow 'integer' objects !)
o 'plot_NparOF' : -) new argument 'beh.thr' to allow selecting only behavioral parameter sets o 'plot_NparOF' : -) new argument 'beh.thr' to allow selecting only behavioral parameter sets
o 'params2ecdf' : -) new arguments 'gofs', 'MinMax' and 'beh.thr'
o new function 'pest2hydroPSO' for importing PEST input files into hydroPSO o new function 'pest2hydroPSO' for importing PEST input files into hydroPSO
o new function 'hydroPSO2pest' for exporting hydroPSO input files to PEST o new function 'hydroPSO2pest' for exporting hydroPSO input files to PEST
......
...@@ -36,6 +36,11 @@ params2ecdf <- function(params, ...) UseMethod("params2ecdf") ...@@ -36,6 +36,11 @@ params2ecdf <- function(params, ...) UseMethod("params2ecdf")
################################################################################ ################################################################################
params2ecdf.default <- function(params, params2ecdf.default <- function(params,
param.names=NULL, param.names=NULL,
gofs,
MinMax=NULL,
beh.thr=NA,
weights=NULL, weights=NULL,
byrow=FALSE, byrow=FALSE,
plot=TRUE, plot=TRUE,
......
...@@ -59,6 +59,12 @@ plot_NparOF <- function(params, ...@@ -59,6 +59,12 @@ plot_NparOF <- function(params,
# Setting 'MinMax' # Setting 'MinMax'
MinMax <- match.arg(MinMax) MinMax <- match.arg(MinMax)
# Checking 'beh.thr'
if ( !is.na(beh.thr) ) {
if ( is.null(gofs) )
stop("Missing argument: 'gofs' has to be provided before using 'beh.thr' !!")
} # IF end
# Number of parameters that will be analysed # Number of parameters that will be analysed
npar <- length(param.names) npar <- length(param.names)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment