|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.ui.layout.springbox.Energies
public class Energies
Represent the history of energy values for a layout algorithm.
Constructor Summary | |
---|---|
Energies()
|
Method Summary | |
---|---|
void |
accumulateEnergy(double value)
Accumulate some energy in the current energy. |
double |
getAverageEnergy()
The average energy in the whole buffer. |
int |
getBufferSize()
The number of energy values remembered. |
double |
getEnergy()
The last computed energy value. |
double |
getPreviousEnergyValue(int stepsBack)
A previous energy value. |
double |
getStabilization()
A number in [0..1] with 1 meaning fully stabilised. |
void |
storeEnergy()
Add a the current accumulated energy value in the set. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Energies()
Method Detail |
---|
public double getEnergy()
public int getBufferSize()
public double getStabilization()
public double getAverageEnergy()
public double getPreviousEnergyValue(int stepsBack)
stepsBack
- The number of steps back in history.
public void accumulateEnergy(double value)
value
- The value to accumulate.public void storeEnergy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |