Generate features from a list of environmental variable vectors
Source:R/RcppExports.R
generate_features.RdGenerates all configured feature types (linear, quadratic, product, threshold, hinge) from the supplied data vectors.
Usage
generate_features(
data_list,
feature_types = as.character(c("linear", "quadratic", "product", "threshold",
"hinge")),
n_thresholds = 10L,
n_hinges = 10L
)Arguments
- data_list
Named list of numeric vectors, one per environmental variable
- feature_types
Character vector of feature types to generate. Valid values: "linear", "quadratic", "product", "threshold", "hinge". Defaults to all types.
- n_thresholds
Number of threshold knots per variable (default: 10)
- n_hinges
Number of hinge knots per variable (default: 10)