View source: R/basic_metrics_pc.R
calc_r | R Documentation |
Calculates the distance of each 2D point (X,Y) in a point cloud from the center (xc, yc) of a circle.
calc_r(x, y, xc, yc)
x |
X values of the points. |
y |
Y values of the points. |
xc |
X-coordinate of the center. |
yc |
Y-coordinate of the center. |
Support function used to determine the DBH from a tree point cloud with
dbh_pc
and dab_pc
.
The distance of 2D points to the center
## Not run:
Ri <- calc_r(x_dbh, y_dbh, x_c, y_c)
R <- mean(Ri)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.