public class MultivariateMonteCarloIntegrator extends AbstractCloneableSerializable implements MonteCarloIntegrator<Vector>
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_VARIANCE
Default variance to add to the Gaussian, 0.0.
|
static MultivariateMonteCarloIntegrator |
INSTANCE
Default instance because this class has no state.
|
| Constructor and Description |
|---|
MultivariateMonteCarloIntegrator()
Creates a new instance of MultivariateMonteCarloIntegrator
|
| Modifier and Type | Method and Description |
|---|---|
MultivariateGaussian.PDF |
getMean(java.util.Collection<? extends Vector> samples)
Computes the Monte Carlo distribution of the given samples.
|
MultivariateGaussian.PDF |
getMean(java.util.List<? extends WeightedValue<? extends Vector>> samples)
Computes the Monte Carlo distribution of the given weighted samples.
|
<SampleType> |
integrate(java.util.Collection<? extends SampleType> samples,
Evaluator<? super SampleType,? extends Vector> expectationFunction)
Integrates the given function given samples from another function.
|
<SampleType> |
integrate(java.util.List<? extends WeightedValue<? extends SampleType>> samples,
Evaluator<? super SampleType,? extends Vector> expectationFunction)
Integrates the given function given weighted samples from another
function.
|
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclonepublic static final double DEFAULT_VARIANCE
public static final MultivariateMonteCarloIntegrator INSTANCE
public MultivariateMonteCarloIntegrator()
public <SampleType> MultivariateGaussian.PDF integrate(java.util.Collection<? extends SampleType> samples, Evaluator<? super SampleType,? extends Vector> expectationFunction)
MonteCarloIntegratorintegrate in interface MonteCarloIntegrator<Vector>SampleType - Type of samples to consider.samples - Samples from the underlying distribution.expectationFunction - Function for which to compute the expectation.public <SampleType> MultivariateGaussian.PDF integrate(java.util.List<? extends WeightedValue<? extends SampleType>> samples, Evaluator<? super SampleType,? extends Vector> expectationFunction)
MonteCarloIntegratorintegrate in interface MonteCarloIntegrator<Vector>SampleType - Type of samples to consider.samples - Weighted samples from the underlying distribution.expectationFunction - Function for which to compute the expectation.public MultivariateGaussian.PDF getMean(java.util.Collection<? extends Vector> samples)
MonteCarloIntegratorgetMean in interface MonteCarloIntegrator<Vector>samples - Samples to consider.public MultivariateGaussian.PDF getMean(java.util.List<? extends WeightedValue<? extends Vector>> samples)
MonteCarloIntegratorgetMean in interface MonteCarloIntegrator<Vector>samples - Weighted samples to consider.