Class ConvolutionDiffusionWidth
- java.lang.Object
-
- org.hortonmachine.gears.utils.math.integration.SimpsonIntegral
-
- org.hortonmachine.gears.utils.math.integration.ConvolutionDiffusionWidth
-
- All Implemented Interfaces:
IntegrableFunction
public class ConvolutionDiffusionWidth extends SimpsonIntegral implements IntegrableFunction
- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
-
Fields inherited from class org.hortonmachine.gears.utils.math.integration.SimpsonIntegral
accuracy, lowerlimit, maxsteps, SIMPSON, strapezoid, TRAPEZOIDAL, upperlimit
-
-
Constructor Summary
Constructors Constructor Description ConvolutionDiffusionWidth(double lowerintegrationlimit, double upperintegrationlimit, int maximalsteps, double integrationaccuracy, double[][] ampiFunction, double diffusionparam, double time)Calculates the integral of the diffusion equation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doubleequation(double x)Equation to integratedoubleintegrate()Performs integration by means of the method of the function that implements it.voidupdateTime(int newt)-
Methods inherited from class org.hortonmachine.gears.utils.math.integration.SimpsonIntegral
simpson, trapezoid
-
-
-
-
Constructor Detail
-
ConvolutionDiffusionWidth
public ConvolutionDiffusionWidth(double lowerintegrationlimit, double upperintegrationlimit, int maximalsteps, double integrationaccuracy, double[][] ampiFunction, double diffusionparam, double time)Calculates the integral of the diffusion equation- Parameters:
lowerintegrationlimit- - the lower limit of integrationupperintegrationlimit- - the upper limit of integrationmaximalsteps- - maximal number of bins in which to divide the intervalintegrationaccuracy- - value of accuracy of integrationampiFunction-diffusionparam-time-integrationtype-
-
-
Method Detail
-
updateTime
public void updateTime(int newt)
-
integrate
public double integrate()
Description copied from interface:IntegrableFunctionPerforms integration by means of the method of the function that implements it.- Specified by:
integratein interfaceIntegrableFunction- Returns:
- the value of the integration
-
equation
protected double equation(double x)
Description copied from class:SimpsonIntegralEquation to integrate- Specified by:
equationin classSimpsonIntegral- Parameters:
x- - point in which to calculate the function- Returns:
-
-