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

  • Field Details

  • Constructor Details

  • 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 interface nz.org.riskscape.engine.rl.agg.AggregationFunction
    • getArguments

      public nz.org.riskscape.engine.function.ArgumentList getArguments()
      Specified by:
      getArguments in interface nz.org.riskscape.engine.rl.agg.AggregationFunction
    • getReturnType

      public nz.org.riskscape.engine.types.Type getReturnType()
      Specified by:
      getReturnType in interface nz.org.riskscape.engine.rl.agg.AggregationFunction