Evaluate a pure repulsive layout objective
Source:R/gmds_edge_repulsive_unfolding.R
repulsive.state.Rd`repulsive.state()` evaluates only the repulsion term used by the experimental GMDS repulsive-unfolding operators. Unlike [edge.repulsive.state()], this function has no graph-edge term and does not require placeholder edges or edge lengths.
Arguments
- coords
Numeric `n` by `dim` coordinate matrix.
- lambda
Repulsion strength. The returned total energy is `lambda * repel.energy`; the gradient is scaled by `lambda`.
- pair.index
Optional two-column matrix of 1-based vertex pairs. If `NULL` and `lambda > 0`, all unordered pairs are used.
- pair.weights
Optional non-negative pair weights parallel to `pair.index`.
- repulsion.family
Repulsion potential family, either `"log"` or `"inverse_power"`.
- repulsion.delta
Small positive softening parameter for pair distances.
- repulsion.power
Power used by the `"inverse_power"` repulsion.
- distance.eps
Small positive distance floor used in derivatives.
- engine
Backend engine. `"cpp"` is the default; `"R"` uses the reference implementation.