Package nz.org.riskscape.defaults.curves
Class TrapezoidIntegrationFunction
java.lang.Object
nz.org.riskscape.engine.function.BaseRealizableFunction
nz.org.riskscape.defaults.curves.TrapezoidIntegrationFunction
- All Implemented Interfaces:
nz.org.riskscape.engine.rl.RealizableFunction
public class TrapezoidIntegrationFunction
extends nz.org.riskscape.engine.function.BaseRealizableFunction
Function for estimating the area under a curve using the https://en.wikipedia.org/wiki/Trapezoidal_rule. Accepts
a function as its first argument, then an interval defined by two points, a
and b
, and a number of intervals
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.engine.rl.RealizableFunction
nz.org.riskscape.engine.rl.RealizableFunction.MetadataIdentifiedRealizableFunction
-
Field Summary
Fields inherited from class nz.org.riskscape.engine.function.BaseRealizableFunction
arguments, returnType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.RiskscapeFunction>
realize
(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall functionCall, List<nz.org.riskscape.engine.types.Type> argumentTypes) Methods inherited from class nz.org.riskscape.engine.function.BaseRealizableFunction
asFunction, build, builtin, getArguments, getReturnType, identified
-
Constructor Details
-
TrapezoidIntegrationFunction
public TrapezoidIntegrationFunction()
-
-
Method Details
-
realize
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.function.RiskscapeFunction> realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.rl.ast.FunctionCall functionCall, List<nz.org.riskscape.engine.types.Type> argumentTypes) - Specified by:
realize
in interfacenz.org.riskscape.engine.rl.RealizableFunction
- Overrides:
realize
in classnz.org.riskscape.engine.function.BaseRealizableFunction
-