|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.filters.supervised.attribute.gpattributegeneration.RPNCalculator
public class RPNCalculator
A calculator for postfix expressions. Ported from Luke's C#.
Constructor Summary | |
---|---|
RPNCalculator()
|
Method Summary | |
---|---|
static double |
evaluate(java.lang.String expression,
Instance instance)
Evaluates a postfix expression. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RPNCalculator()
Method Detail |
---|
public static double evaluate(java.lang.String expression, Instance instance)
expression
- Expression to evaluate as a space separated stringinstance
- the instance (row) to
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |