Evaluate a pure repulsive layout objective
Source:R/export_examples.R, R/gmds_edge_repulsive_unfolding.R
repulsive.state.Rdrepulsive.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
nbydimcoordinate matrix.- lambda
Repulsion strength. The returned total energy is
lambda * repel.energy; the gradient is scaled bylambda.- pair.index
Optional two-column matrix of 1-based vertex pairs. If
NULLandlambda > 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.