R/metric.R
niche_metric.Rd
Build a sensitivity-weighted niche metric
niche_metric(sensitivity = NULL, cnfa = NULL, type = c("diag", "factor"))
Numeric vector of climate-variable sensitivity weights.
Optional CENFA cnfa object or list with sf, co, and eig.
cnfa
sf
co
eig
Metric type. "diag" uses variable-level sensitivity weights. "factor" uses a factor metric when CNFA factor coordinates are available.
"diag"
"factor"
A positive semi-definite matrix.