computeValidationStats: Compute validation statistics.

Description Usage Arguments Value

View source: R/validation.R

Description

A wrapper to compute continuous, categorical and volumetric statistics for validation.

Usage

1
2
3
4
5
6
7
8
9
computeValidationStats(
  stn_data,
  grd_data,
  validation_type = "stations",
  categorical_thres = 1,
  categorical_fun = ">=",
  volumetric_type = "percentile",
  volumetric_pars = 50
)

Arguments

stn_data, grd_data

A named list of CDT stations data format, output from readCDTStationFormat.

  • stn_data: contains the reference observations data used to validate

  • grd_data: contains the simulated or estimated data to be validated

validation_type

Type of the output statistics to compute. Options are

  • "stations": The statistics will be computed for each stations

  • "all": The statistics will be computed by using all stations together

  • "average": The statistics will be computed by spatially averaging all stations

categorical_thres

A number, giving the threshold to use to create the contingency table for the categorical statistics.

categorical_fun

A character, indicating the operator function to be applied for the categorical statistics. Options: ">=", ">", "<=", "<"

volumetric_type

The type of threshold to use to compute the volumetric statistics. Options: "threshold", "percentile"

volumetric_pars

The thresholds or percentile to use to compute the volumetric statistics. If volumetric_type is

  • "threshold": volumetric_pars specifies the threshold to be used.
    If one value is provided, all the stations will use this threshold
    If a vector is provided, it must be the same number of the number of stations in stn_data

  • "percentile": a value of the percentile to use. The percentile will be computed using stn_data to create the threshold to be used to compute the volumetric statistics

Value

A list object


rijaf-iri/mtorwdata documentation built on March 9, 2021, 6:36 a.m.