% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/features.R
\name{maxent_threshold_feature}
\alias{maxent_threshold_feature}
\title{Create a Threshold Feature}
\usage{
maxent_threshold_feature(values, name, threshold)
}
\arguments{
\item{values}{Numeric vector of environmental variable values.}

\item{name}{Character string: feature name/identifier.}

\item{threshold}{The threshold value.}
}
\value{
External pointer to a ThresholdFeature C++ object.
}
\description{
Creates a binary step feature: \code{eval(i) = 1} if
\code{values[i] > threshold}, else \code{0}.
}
\examples{
vals <- c(1, 5, 10, 3)
f <- maxent_threshold_feature(vals, "temperature_threshold", threshold = 5)
maxent_feature_eval(f, 3)  # values[3] = 10 > 5 -> 1
}
