Learn R Programming

analogue (version 0.17-7)

evenSample: Number of samples per gradient segments

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

evenSample(grad, n = 10)

Value

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

Arguments

grad

numeric; vector of gradient values

n

number of segments to partition the gradient into

Author

Gavin L. Simpson

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.

Examples

Run this code
data(SumSST)
ev <- evenSample(SumSST) ## not an even sample...
plot(ev)

Run the code above in your browser using DataLab