uk.ac.liv.auction.electricity
Class StandardRandomizer
java.lang.Object
uk.ac.liv.auction.electricity.StandardRandomizer
- All Implemented Interfaces:
- Parameterizable, java.io.Serializable
- Direct Known Subclasses:
- FixedScheduleRandomizer
- public class StandardRandomizer
- extends java.lang.Object
- implements Parameterizable, java.io.Serializable
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
auction
protected RoundRobinAuction auction
minPrivateValue
protected double minPrivateValue
maxPrivateValue
protected double maxPrivateValue
experiment
protected ElectricityExperiment experiment
privValuePRNG
protected cern.jet.random.engine.RandomEngine privValuePRNG
seeds
protected long[] seeds
StandardRandomizer
public StandardRandomizer(ElectricityExperiment simulation)
StandardRandomizer
public StandardRandomizer()
setup
public void setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
- Description copied from interface:
Parameterizable
- Initialise this object from a parameter database.
- Specified by:
setup in interface Parameterizable
setExperiment
public void setExperiment(ElectricityExperiment experiment)
randomValue
public double randomValue(cern.jet.random.engine.RandomEngine prng,
double min,
double max)
randomPrivateValue
public double randomPrivateValue(double min,
double max)
randomPrivateValue
public double randomPrivateValue()
randomizePrivateValues
public void randomizePrivateValues(double[][] values,
int iteration)
generateRandomizedPrivateValues
protected double[][] generateRandomizedPrivateValues(int numTraders,
int numIterations)
generatePRNGseeds
protected void generatePRNGseeds(int numIterations)
toString
public java.lang.String toString()