% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/features.R
\name{maxent_feature_eval}
\alias{maxent_feature_eval}
\title{Evaluate a Feature at a Given Index}
\usage{
maxent_feature_eval(feature, index)
}
\arguments{
\item{feature}{External pointer to a Feature C++ object.}

\item{index}{1-based integer index into the data vector.}
}
\value{
Numeric scalar: the feature value at that index.
}
\description{
Evaluates the feature function at the specified index (1-based, as is
standard in R). Internally converts to 0-based indexing for C++.
}
\examples{
vals <- c(0, 5, 10)
f <- maxent_linear_feature(vals, "temp")
maxent_feature_eval(f, 2)  # 5/10 = 0.5
}
