weka.core.expressionlanguage.common
Class MathFunctions
- java.lang.Object
-
- weka.core.expressionlanguage.common.MathFunctions
-
- All Implemented Interfaces:
- MacroDeclarations
public class MathFunctions extends java.lang.Object implements MacroDeclarations
Macro declarations for common mathematical functions. The following functions are being exposed through macros:java.lang.Math.abs(double)as absjava.lang.Math.sqrt(double)as sqrtjava.lang.Math.log(double)as logjava.lang.Math.exp(double)as expjava.lang.Math.sin(double)as sinjava.lang.Math.cos(double)as cosjava.lang.Math.tan(double)as tanjava.lang.Math.rint(double)as rintjava.lang.Math.floor(double)as floorjava.lang.Math.ceil(double)as ceiljava.lang.Math.pow(double)as pow
-
-
Constructor Summary
Constructors Constructor and Description MathFunctions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description MacrogetMacro(java.lang.String name)Tries to fetch the macrobooleanhasMacro(java.lang.String name)Whether the macro is declared
-
-
-
Method Detail
-
hasMacro
public boolean hasMacro(java.lang.String name)
Whether the macro is declared- Specified by:
hasMacroin interfaceMacroDeclarations- Parameters:
name- of the macro- Returns:
- whether the macro is declared
-
getMacro
public Macro getMacro(java.lang.String name)
Tries to fetch the macro The same invariant ofMacroDeclarationsapplies here too.- Specified by:
getMacroin interfaceMacroDeclarations- Parameters:
name- name of the macro- Returns:
- a macro
-
-
DataMelt 3.0 © DataMelt by jWork.ORG