Utility Functions

Description

rmse computes the root mean squared error (rsme) of two numeric vectors/matrices

freq counts the frequency using user-defined values

Usage

1
2
3
rmse(x, y)

freq(x, values)

Arguments

x

a vector/matrix of numeric values

y

a vector/matrix of numeric values

values

a vector of valid counting values

See Also

Other res: cat.sim

Examples

1
2
3
4
rmse(1:10 + rnorm(10), 1:10 + rnorm(10))
rmse(matrix(1:100 + rnorm(100), ncol=5), matrix(1:100 + rnorm(100), ncol=5))
freq(sample(1:4, 100, replace=TRUE), 5:1)
freq(sample(1:4, 100, replace=TRUE), 1:5)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.