Class MathFunctions
java.lang.Object
weka.core.expressionlanguage.common.MathFunctions
- All Implemented Interfaces:
MacroDeclarations
Macro declarations for common mathematical functions.
The following functions are being exposed through macros:
- {@link java.lang.Math.abs(double)} as abs
- {@link java.lang.Math.sqrt(double)} as sqrt
- {@link java.lang.Math.log(double)} as log
- {@link java.lang.Math.exp(double)} as exp
- {@link java.lang.Math.sin(double)} as sin
- {@link java.lang.Math.cos(double)} as cos
- {@link java.lang.Math.tan(double)} as tan
- {@link java.lang.Math.rint(double)} as rint
- {@link java.lang.Math.floor(double)} as floor
- {@link java.lang.Math.ceil(double)} as ceil
- {@link java.lang.Math.pow(double)} as pow
- Version:
- $Revision: 1000 $
- Author:
- Benjamin Weber ( benweber at student dot ethz dot ch )
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MathFunctions
public MathFunctions()
-
-
Method Details
-
hasMacro
Whether the macro is declared- Specified by:
hasMacro
in interfaceMacroDeclarations
- Parameters:
name
- of the macro- Returns:
- whether the macro is declared
-
getMacro
Tries to fetch the macro The same invariant ofMacroDeclarations
applies here too.- Specified by:
getMacro
in interfaceMacroDeclarations
- Parameters:
name
- name of the macro- Returns:
- a macro
-