matric: Metric Wrapper

matricR Documentation

Metric Wrapper

Description

Metric Wrapper

Usage

matric(x, fun, ...)

Arguments

x

[numeric()][matrix()] of two columns

fun

[function()] taking two [numeric()][vector()] arguments and returning one scalar [numeric()] value

...

additional arguments to pass to fun()

Value

[numeric()] scalar

Examples

x <- rnorm(100, 0, 1)
x1 <- matrix(c(x, x), ncol = 2)
matric(x1, mase)

x2 <- rbind(x1, matrix(c(NA_real_, NA_real_), ncol = 2))
matric(x2, mase)


luke-a-rogers/pbsedm documentation built on June 3, 2024, 5:20 a.m.