perf2idx: perf2idx

Description Usage Arguments Value Examples

Description

Renders simulation numbers meeting selected performance criteria.

Usage

1
perf2idx(perfMatrix, lowLimit, upLimit)

Arguments

perfMatrix

A data.frame object containing performance matrix (i.e. output of dws2perf function).

lowLimit

A vector contatining the lower limits for RMSE, NASH and PBIAS, Mean e.g. c(0,0,-25,0).

upLimit

A vector contatining the upper limits for RMSE, NASH and PBIAS, Mean, e.g. c(10,1,+25,5).

Value

A data frame containing accepted simulations and their performance measure values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
# Creating a copy of tutorial folder:
    getExampleFolder()
# Creating a list for setting inputs:
    globalInput <- inputGen()
# Setting parameter bounds:
    globalInput$apexPARM$Root_growth_soil[1] = 0.15
    globalInput$apexPARM$Root_growth_soil[2] = 0.2
    globalInput$apexPARM$Soil_evap_plant_cover[1] = 0
    globalInput$apexPARM$Soil_evap_plant_cover[2] = 0.5
# Performing Monte Carlo simulation:
    input4SA <- APEXSENSUN::mc4APEX(globalInput)
# Calculating performance matrix:
    PerfMat <- dws2perf(observedFilePath ="Example/Observed_Files/observed.txt",
                    dwsFolderPath = "Example/Calculated_Outputs/DWS",
                    startDate="2002-01-01",
                    endDate="2003-01-01",
                    captionDwsVar="ET",captionObsVar="ET",TW="week")
# Extracting simulations meeting performance criteria:
    acceptedSimulations <- perf2idx(perfMatrix = PerfMat,
                                    lowLimit = c(0, 0, -2, 0),
                                    upLimit = c(10, 1, 2, 5))

## End(Not run)

Rapex2017/apexsensun documentation built on May 4, 2019, 6:39 p.m.