Module org.jgrapht.core
Package org.jgrapht.alg.drawing
Class FRLayoutAlgorithm2D.InverseLinearTemperatureModel
java.lang.Object
org.jgrapht.alg.drawing.FRLayoutAlgorithm2D.InverseLinearTemperatureModel
- All Implemented Interfaces:
FRLayoutAlgorithm2D.TemperatureModel
- Enclosing class:
- FRLayoutAlgorithm2D<V,
E>
protected class FRLayoutAlgorithm2D.InverseLinearTemperatureModel
extends Object
implements FRLayoutAlgorithm2D.TemperatureModel
An inverse linear temperature model.
-
Constructor Summary
ConstructorDescriptionInverseLinearTemperatureModel
(double a, double b) Create a new inverse linear temperature model. -
Method Summary
Modifier and TypeMethodDescriptiondouble
temperature
(int iteration, int maxIterations) Return the temperature for the new iteration
-
Constructor Details
-
InverseLinearTemperatureModel
public InverseLinearTemperatureModel(double a, double b) Create a new inverse linear temperature model.- Parameters:
a
- ab
- b
-
-
Method Details
-
temperature
public double temperature(int iteration, int maxIterations) Description copied from interface:FRLayoutAlgorithm2D.TemperatureModel
Return the temperature for the new iteration- Specified by:
temperature
in interfaceFRLayoutAlgorithm2D.TemperatureModel
- Parameters:
iteration
- the next iterationmaxIterations
- total number of iterations- Returns:
- the temperature for the next iteration
-