Package ffx.algorithms.optimize.manybody
Class DistanceMatrix.NeighborDistances
java.lang.Object
ffx.algorithms.optimize.manybody.DistanceMatrix.NeighborDistances
- Enclosing class:
DistanceMatrix
Store all neighbors of a residue / rotamer pair.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getDistance
(int j, int rj) Get a distance.void
storeDistance
(int j, int rj, double distance) Store a distance.
-
Constructor Details
-
NeighborDistances
public NeighborDistances(int i, int ri) Constructor.- Parameters:
i
- The residue index.ri
- The rotamer index.
-
-
Method Details
-
storeDistance
public void storeDistance(int j, int rj, double distance) Store a distance.- Parameters:
j
- The residue index.rj
- The rotamer index.distance
- The distance.
-
getDistance
public double getDistance(int j, int rj) Get a distance.- Parameters:
j
- The residue index.rj
- The rotamer index.- Returns:
- The distance.
-