% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_diagnostics.R
\name{maxent_clamp}
\alias{maxent_clamp}
\title{Clamp Environmental Grids}
\usage{
maxent_clamp(env_grids, var_mins, var_maxs)
}
\arguments{
\item{env_grids}{List of external pointers to Grid<float> objects.}

\item{var_mins}{Numeric vector of minimum training values per variable.}

\item{var_maxs}{Numeric vector of maximum training values per variable.}
}
\value{
A named list with:
  \describe{
    \item{clamped_grids}{List of external pointers to clamped grids}
    \item{clamp_grid}{External pointer to clamping magnitude grid}
  }
}
\description{
Restricts environmental variable values to the range observed during
training. Values below min are set to min, values above max are set to max.
A clamping grid records the total absolute clamping at each cell.
}
\examples{
\donttest{
result <- maxent_clamp(list(g1, g2), c(0, 50), c(30, 200))
clamped <- result$clamped_grids
clamp_mat <- maxent_grid_to_matrix(result$clamp_grid)
}
}
