% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/core.R
\name{compute_stats}
\alias{compute_stats}
\title{Compute geometry statistics for parameter derivation}
\usage{
compute_stats(
  sf_obj,
  region_col,
  centroid_fun = c("centroid", "point_on_surface")
)
}
\arguments{
\item{sf_obj}{Projected sf object}

\item{region_col}{Name of the grouping column}

\item{centroid_fun}{"centroid" (default) or "point_on_surface"}
}
\value{
A named list of geometry statistics
}
\description{
Extracts w_bar, R_local, n_bar, n_regions, and the tightness ratio
from a projected sf object with a grouping column.
}
