rtini_error: Compute RTIN Surface Approximation Error on a Height Map

Description Usage Arguments Value See Also Examples

View source: R/error.R

Description

A vectorized adaptation of Vladimir Agafonkin's MARTINI implementation of the Evans etal. Right Triangulated Irregular Networks surface approximation algorithm. Accepts a broader set of input matrix dimensions than MARTINI.

Usage

1

Arguments

map

numeric matrix with at least three rows and three columns, and with an odd number of each. It is expected that the input is finite and does not contain NAs.

Value

numeric matrix of the same dimension as map with the maximum of the rtin approximation error at each point and the equivalent approximation at the child points.

See Also

rtin_extract()

Examples

1
2
err <- rtini_error(volcano)
rtin_extract(err, tol=10)

brodieG/rtini documentation built on Jan. 22, 2020, 2:03 a.m.