Interface MonteCarloProvider
- All Superinterfaces:
AlgorithmProvider
- All Known Implementing Classes:
MulticoreMonteCarloProvider
Interface for Monte Carlo integration and estimation providers.
- Since:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptiondefault longcountPointsInside(long samples) doubleestimatePi(int samples) estimatePi(int samples, boolean useReal) floatestimatePiFloat(int samples) default StringReturns the unique category of the algorithm.default StringgetName()doubleintegrate(ToDoubleFunction<double[]> function, double[] lowerBounds, double[] upperBounds, int samples) floatintegrate(ToFloatFunction<float[]> function, float[] lowerBounds, float[] upperBounds, int samples) Methods inherited from interface AlgorithmProvider
description, getMetadata, getPriority, isAvailable, score, shutdown
-
Method Details
-
integrate
float integrate(ToFloatFunction<float[]> function, float[] lowerBounds, float[] upperBounds, int samples) -
integrate
double integrate(ToDoubleFunction<double[]> function, double[] lowerBounds, double[] upperBounds, int samples) -
integrate
-
estimatePiFloat
float estimatePiFloat(int samples) -
estimatePi
double estimatePi(int samples) -
estimatePi
-
countPointsInside
default long countPointsInside(long samples) -
getName
- Specified by:
getNamein interfaceAlgorithmProvider
-
getAlgorithmType
Description copied from interface:AlgorithmProviderReturns the unique category of the algorithm.- Specified by:
getAlgorithmTypein interfaceAlgorithmProvider
-