Learn R Programming

LeafAngle (version 1.2-1)

drawsample: Simulate from a leaf angle distribution

Description

Uses rejection sampling to generate deviates from any of the supported leaf angle distributions.

Usage

drawsample(obj, n = 25, degrees = FALSE, ...)

Arguments

obj
Object of class angledist
n
Sample size
degrees
Logical
...
More parameters to ftheta.

Value

A vector of angles (0 - 90 degrees).

References

Wang W.M., Li Z.L. & Su H.B. (2007). Comparison of leaf angle distribution functions: Effects on extinction coefficient and fraction of sunlit foliage. Agricultural and Forest Meteorology, 143, 106-122.

See Also

fitdistribution, fitalldistributions