Package nz.org.riskscape.defaults.curves
Class FitCurveFunction
java.lang.Object
nz.org.riskscape.defaults.curves.FitCurveFunction
- All Implemented Interfaces:
nz.org.riskscape.engine.rl.agg.AggregationFunction
public class FitCurveFunction
extends Object
implements nz.org.riskscape.engine.rl.agg.AggregationFunction
Aggregate function for fitting a collected set of x/y values to a curve. So far, we've only got power law, but I expect this to be extended to a range of functions, and allow options for different types of functions, e.g. try the different positively monotonic functions for loss curves, or perhaps just pick from an explicit list.
TODO add support for selecting which curves and setting the curve fitting parameters
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.engine.function.ArgumentList
nz.org.riskscape.engine.types.Type
nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.rl.agg.RealizedAggregateExpression>
realize
(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.engine.types.Type inputType, nz.org.riskscape.rl.ast.FunctionCall fc)
-
Field Details
-
PROBLEMS
-
-
Constructor Details
-
FitCurveFunction
-
-
Method Details
-
realize
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.rl.agg.RealizedAggregateExpression> realize(nz.org.riskscape.engine.rl.RealizationContext context, nz.org.riskscape.engine.types.Type inputType, nz.org.riskscape.rl.ast.FunctionCall fc) - Specified by:
realize
in interfacenz.org.riskscape.engine.rl.agg.AggregationFunction
-
getArguments
public nz.org.riskscape.engine.function.ArgumentList getArguments()- Specified by:
getArguments
in interfacenz.org.riskscape.engine.rl.agg.AggregationFunction
-
getReturnType
public nz.org.riskscape.engine.types.Type getReturnType()- Specified by:
getReturnType
in interfacenz.org.riskscape.engine.rl.agg.AggregationFunction
-