monotonicity check for taper curve
check_monotonicity(obj, Rfn = NULL)vector of logicals, same length as spp.
object of class 'tprTrees'
Rfn setting for residuals error matrix, defaults to
list(fn="sig2"), see resVar.
Taper curves are required to decrease monotonically. To avoid the
evaluation of non-monotone taper curves, a check is done through the
constructor function and an indicator (monotone) is set for each tree
stored inside the tprTrees-class. As the data has been check on validity
before this function is applied, we can use the tpr*-functions to evaluate
the taper curve and its monotonicity.
The check is done via comparison of the expected diameters along the trunk in
1m-steps and its sorted (monotonically decreasing) version using
identical.