err_fun: Error functions

Description Usage Arguments Examples

Description

res

Residual

ssq

Sum of squares

mse

Mean squared error

rmse

Root-mean-square error

mae

Mean absolute error

Usage

1
2
3
4
5
6
7
8
9
res(sim, obs)

ssq(sim, obs)

mse(sim, obs)

rmse(sim, obs)

mae(sim, obs)

Arguments

sim

Simulated values.

obs

Observed values.

Examples

1
2
3
4
5
6
7
sim <- 1:2
obs <- numeric(2)
res(sim, obs)
ssq(sim, obs)
mse(sim, obs)
rmse(sim, obs)
mae(sim, obs)

columbia-glacier/cgr documentation built on Aug. 20, 2017, 5:49 p.m.