Package io.bhagat.math.statistics
Class Simulation<E>
- java.lang.Object
-
- io.bhagat.math.statistics.Simulation<E>
-
- Direct Known Subclasses:
DoubleDistribution.DoubleSimulation
public abstract class Simulation<E> extends java.lang.Object- Author:
- Bhagat
-
-
Constructor Summary
Constructors Constructor Description Simulation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract EgetLastResult()gets the last result of the simulationabstract Erun()runs the simulationjava.util.ArrayList<E>run(int iterations)runs the simulation
-
-
-
Method Detail
-
run
public abstract E run()
runs the simulation- Returns:
- the result of the simulation
-
getLastResult
public abstract E getLastResult()
gets the last result of the simulation- Returns:
- the last result
-
run
public java.util.ArrayList<E> run(int iterations)
runs the simulation- Parameters:
iterations- the number of iterations to run the simulation- Returns:
- an array list with the results
-
-