DataType - Type of data used as inputs by the target functionSampleType - Type of samples generated by the samplerFunctionType - Type of Evaluator to sample from@PublicationReference(author="Wikipedia", title="Monte Carlo method", type=WebPage, year=2010, url="http://en.wikipedia.org/wiki/Monte_carlo_method") public interface MonteCarloSampler<DataType,SampleType,FunctionType extends Evaluator<? super DataType,java.lang.Double>> extends CloneableSerializable
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<? extends SampleType> |
sample(FunctionType targetFunction,
java.util.Random random,
int numSamples)
Draws samples according to the distribution of the target function.
|
clonejava.util.ArrayList<? extends SampleType> sample(FunctionType targetFunction, java.util.Random random, int numSamples)
targetFunction - Target function that we want to generate samples.random - Random-number generator.numSamples - Number of samples to generate.