Package org.oristool.simulator.samplers
Class PseudoSampler
java.lang.Object
org.oristool.simulator.samplers.PseudoSampler
- All Implemented Interfaces:
Sampler
A pseudo-sampler cycling through a fixed sequence of sample (from a random
initial point).
-
Constructor Summary
ConstructorDescriptionPseudoSampler
(String filename, int initCapacity) Builds a new instance using samples from a file.PseudoSampler
(BigDecimal... samples) Builds a new instance using the input samples. -
Method Summary
-
Constructor Details
-
PseudoSampler
Builds a new instance using the input samples.- Parameters:
samples
- input samples
-
PseudoSampler
Builds a new instance using samples from a file.- Parameters:
filename
- file with one sample per lineinitCapacity
- initial capacity of the list
-
-
Method Details