evenlySampled: Number of samples per gradient segments

Description Usage Arguments Details Value Author(s) Examples

Description

The number of samples in sections along the gradient is a useful diagnostic as to the quality of reconstructions at gradient values within those sections.

Usage

1
evenSample(grad, n = 10)

Arguments

grad

numeric; vector of gradient values

n

number of segments to partition the gradient into

Details

The sampling design of a training set, i.e. the number of samples taken at points along the gradient, can influence the uncertainty in the transfer function predictions at those values of the gradient. Poorly sampled sections of the gradient may have far larger RMSEP than the overall model RMSEP.

Value

Numeric vector of length n containing the numbers of samples per gradient segment.

Author(s)

Gavin L. Simpson

Examples

1
2
3
data(SumSST)
ev <- evenSample(SumSST) ## not an even sample...
plot(ev)

gavinsimpson/analogue documentation built on June 17, 2021, 2:37 a.m.