Class RungeKuttaODEProvider
java.lang.Object
org.episteme.core.mathematics.numerical.ode.providers.RungeKuttaODEProvider
- All Implemented Interfaces:
ODEProvider, AlgorithmProvider
@AutoService(AlgorithmProvider.class)
public class RungeKuttaODEProvider
extends Object
implements ODEProvider
Implementation of ODEProvider using classical Runge-Kutta 4 (RK4).
- Since:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the execution priority (higher is better).double[]solve(BiFunction<Double, double[], double[]> f, double[] y0, double t0, double t1, int steps) float[]solve(BiFunction<Float, float[], float[]> f, float[] y0, float t0, float t1, int steps) Real[]Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AlgorithmProvider
description, getMetadata, isAvailable, score, shutdownMethods inherited from interface ODEProvider
getAlgorithmType, getName
-
Constructor Details
-
RungeKuttaODEProvider
public RungeKuttaODEProvider()
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:AlgorithmProviderReturns the execution priority (higher is better).- Specified by:
getPriorityin interfaceAlgorithmProvider
-
solve
public float[] solve(BiFunction<Float, float[], float[]> f, float[] y0, float t0, float t1, int steps) - Specified by:
solvein interfaceODEProvider
-
solve
public double[] solve(BiFunction<Double, double[], double[]> f, double[] y0, double t0, double t1, int steps) - Specified by:
solvein interfaceODEProvider
-
solve
- Specified by:
solvein interfaceODEProvider
-