View source: R/basic_metrics_pc.R
f | R Documentation |
Calculates the algebraic distance between the data points and the mean circle
centered at c=(xc, yc) based on calc_r
.
f(c, x, y)
c |
First estimate of the center coordinates to be optimised (xc,yc). |
x |
X values of the points. |
y |
Y values of the points. |
Support function used to determine the DBH from a tree point cloud with the
functions dbh_pc
and dab_pc
.
When optimised returns the optimised center estimate of the circle fitting.
## Not run:
center_estimate <- optim(par = c(x_m, y_m), fn = f, x = x_dbh, y = y_dbh)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.