Unified entry point for TDNN weights. Use method = "exact" for
the exact finite-population rank-weight rule (weights_tdnn_exact()) and
method = "asymp" for the asymptotic full-rank approximation
(weights_tdnn_asymp()).
Arguments
- X
Numeric matrix (n x p).
- X0
Numeric matrix (m x p); mutually exclusive with
x0.- x0
Numeric length-p single target (convenience for m = 1).
- distance
Distance spec or registered name (e.g.,
"l2").- s1
Positive integer; smaller U-statistic order (
s1 < s2 <= n).- s2
Positive integer; larger U-statistic order.
- dim
Positive integer; localization dimension. Defaults to
ncol(X)whenNULL.- method
One of
"exact"or"asymp".- normalize
Logical; renormalize rank table columns to sum 1 (default
TRUE).- ctx
Optional context passed through to distance and rank-weight evaluators.
- return
Character vector of extras to include; any of
c("W", "ord", "ranks", "dx").