Skip to contents

Build a sensitivity-weighted niche metric

Usage

niche_metric(sensitivity = NULL, cnfa = NULL, type = c("diag", "factor"))

Arguments

sensitivity

Numeric vector of climate-variable sensitivity weights.

cnfa

Optional CENFA cnfa object or list with sf, co, and eig.

type

Metric type. "diag" uses variable-level sensitivity weights. "factor" uses a factor metric when CNFA factor coordinates are available.

Value

A positive semi-definite matrix.