import org.apache.poi.ss.formula.functions.*;
/**
- * @author Amol S. Deshmukh < amolweb at ya hoo dot com >
- * @author Johan Karlsteen - added Intercept and Slope
+ * Mappings from the Excel functions to our evaluation implementations
+ * (where avilable)
*/
public final class FunctionEval {
/**
retval[39] = NumericFunction.MOD;
retval[43] = new DStarRunner(new DMin());
-
+
retval[46] = AggregateFunction.VAR;
retval[48] = TextFunction.TEXT;
retval[FunctionID.INDIRECT] = null; // Indirect.evaluate has different signature
- retval[162] = TextFunction.CLEAN; //Aniket Banerjee
+ retval[162] = TextFunction.CLEAN;
retval[167] = new IPMT();
retval[168] = new PPMT();
retval[169] = new Counta();
retval[212] = NumericFunction.ROUNDUP;
retval[213] = NumericFunction.ROUNDDOWN;
retval[216] = new Rank();
- retval[219] = new Address(); //Aniket Banerjee
+ retval[219] = new Address();
retval[220] = new Days360();
retval[221] = new Today();
throw new IllegalArgumentException(name + " is a function from the Excel Analysis Toolpack. " +
"Use AnalysisToolpack.registerFunction(String name, FreeRefFunction func) instead.");
}
-
+
throw new IllegalArgumentException("Unknown function: " + name);
}