|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.filters.supervised.attribute.gpattributegeneration.Function
public class Function
Class to contain list of supported functions and their properties (such as arity)
Field Summary | |
---|---|
static java.lang.String |
HELP_ALL_FUNCTIONS
|
Constructor Summary | |
---|---|
Function()
|
Method Summary | |
---|---|
static int |
arity(java.lang.String func)
An integer denoting the arity of the given function |
static java.util.ArrayList<java.lang.String> |
getBinaryFuncSet(java.util.ArrayList<java.lang.String> funcSet)
Generates and returns a binary ArrayList from a complete array list |
static java.util.ArrayList<java.lang.String> |
getUnaryFuncSet(java.util.ArrayList<java.lang.String> funcSet)
Generates and returns a unary ArrayList from a complete array list |
static boolean |
isUnary(java.lang.String func)
Checks whether the function is unary or binary |
static boolean |
isValid(java.lang.String func)
Checks the function is on the allowed list of functions. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HELP_ALL_FUNCTIONS
Constructor Detail |
---|
public Function()
Method Detail |
---|
public static boolean isValid(java.lang.String func)
func
- The function to test
public static boolean isUnary(java.lang.String func)
func
- The function to test
public static int arity(java.lang.String func)
func
- The function to find out the arity of
public static java.util.ArrayList<java.lang.String> getUnaryFuncSet(java.util.ArrayList<java.lang.String> funcSet)
funcSet
- The complete array list to make a unary function list out of
public static java.util.ArrayList<java.lang.String> getBinaryFuncSet(java.util.ArrayList<java.lang.String> funcSet)
funcSet
- The complete array list to make a binary function list out of
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |