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 java.lang.Object implements FRLayoutAlgorithm2D.TemperatureModel
An inverse linear temperature model.
-
-
Constructor Summary
Constructors Constructor Description InverseLinearTemperatureModel(double a, double b)
Create a new inverse linear temperature model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
temperature(int iteration, int maxIterations)
Return the temperature for the new iteration
-
-
-
Method Detail
-
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
-
-