Class LinReg

    • Constructor Detail

      • LinReg

        protected LinReg​(FunDef funDef,
                         int regType)
    • Method Detail

      • 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)
      • 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)