Class LinReg

java.lang.Object
org.eigenbase.xom.XMLUtil
org.eigenbase.xom.XOMUtil
All Implemented Interfaces:
FunDef
Direct Known Subclasses:
LinReg.InterceptFunDef, LinReg.PointFunDef, LinReg.R2FunDef, LinReg.SlopeFunDef, LinReg.VarianceFunDef

public abstract class LinReg extends FunDefBase
Abstract base class for definitions of linear regression functions.
See Also:
  • Field Details

  • Constructor Details

    • LinReg

      protected LinReg(FunDef funDef, int regType)
  • Method Details

    • compileCall

      public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler)
      Description copied from interface: FunDef
      Converts a call to this function into executable objects.

      The result must implement the appropriate interface for the result type. For example, a function which returns an integer must return an object which implements IntegerCalc.

      Specified by:
      compileCall in interface FunDef
      Overrides:
      compileCall in class FunDefBase
    • debug

      protected static void debug(String type, String msg)
    • process

      protected static mondrian.olap.fun.LinReg.Value process(Evaluator evaluator, ListCalc listCalc, DoubleCalc yCalc, DoubleCalc xCalc)
    • accuracy

      public static mondrian.olap.fun.LinReg.Value accuracy(mondrian.olap.fun.LinReg.Value value)
    • linearReg

      public static mondrian.olap.fun.LinReg.Value linearReg(List xlist, List ylist)
    • forecast

      public static List forecast(mondrian.olap.fun.LinReg.Value value)