continuousComparison: Compare continuous data

View source: R/benchmarking.R

continuousComparisonR Documentation

Compare continuous data

Description

Compares two datasets of continuous data. Specifically calculates and returns a Statistics object (which contains many metrics) given numeric two vectors of equal size

Usage

continuousComparison(
  x,
  layers1,
  layers2,
  additional,
  verbose = TRUE,
  area = TRUE,
  tolerance = 0.01
)

Arguments

x

A data.table containing the spatial-temporal-annual columns and two columns containing the data to be compared

layers1

A character string giving the first layer to compare (should be a column in x). For the normalised metrics, this is the *modelled* values.

layers2

A character string giving the second layer to compare (should be a column in x). For the normalised metrics, this is the *observed* values.

additional

A list of functions define additions metrics, see the custom.metrics argument of compareLayers

verbose

A logical, if TRUE print out all the metric scores

area

A logical, if true weight the metrics by gridcell area

Value

A named list of metric statistics

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.