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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.engine.function.ArgumentListnz.org.riskscape.engine.types.Typenz.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:
realizein interfacenz.org.riskscape.engine.rl.agg.AggregationFunction
-
getArguments
public nz.org.riskscape.engine.function.ArgumentList getArguments()- Specified by:
getArgumentsin interfacenz.org.riskscape.engine.rl.agg.AggregationFunction
-
getReturnType
public nz.org.riskscape.engine.types.Type getReturnType()- Specified by:
getReturnTypein interfacenz.org.riskscape.engine.rl.agg.AggregationFunction
-