Class LebesgueIntegration
java.lang.Object
org.episteme.core.mathematics.analysis.integration.LebesgueIntegration
Lebesgue integration support.
Focuses on methods that handle complex domains and high dimensions, characteristic of Lebesgue integration utility.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RealintegrateSimpleFunction(List<Real> values, List<Real> measures) Integration of a simple function (step function).static RealmonteCarlo(Function<Vector<Real>, Real> f, Vector<Real> lowerBounds, Vector<Real> upperBounds, int samples) Monte Carlo integration.
-
Constructor Details
-
LebesgueIntegration
public LebesgueIntegration()
-
-
Method Details
-
monteCarlo
public static Real monteCarlo(Function<Vector<Real>, Real> f, Vector<Real> lowerBounds, Vector<Real> upperBounds, int samples) Monte Carlo integration.Approximates the integral of f over a hypercube defined by bounds. Converges as O(1/√N), independent of dimension.
- Parameters:
f- function to integrate (takes Vector, returns Real) lowerBounds- lower bounds of the hypercubeupperBounds- upper bounds of the hypercubesamples- number of random samples- Returns:
- approximate integral
-
integrateSimpleFunction
Integration of a simple function (step function).Fundamental to definition of Lebesgue integral. ∫ f dμ = Σ a_i * μ(E_i)
- Parameters:
values- values (a_i) taken by the functionmeasures- measures μ(E_i) of the sets where function takes value a_i- Returns:
- the integral value
-