Assemble anchor targets from feature-space directions
Source:R/dkge-anchor-targets.R
dkge_anchor_targets_from_directions.RdConverts named direction vectors into anchor weight rows using [dkge_anchor_contrast_from_direction()].
Arguments
- anchors
Matrix of anchor coordinates (`L x d`).
- directions
Either a named list of numeric vectors (length `d`) or a matrix whose rows are named directions in the same feature space as `anchors`.
- sigma
Optional bandwidth forwarded to [dkge_anchor_contrast_from_direction()].
- normalize
Logical; when `TRUE` (default) the resulting weights are L2-normalised.