weka.filters.unsupervised.attribute
Class AddExpression.Operator

java.lang.Object
  extended byweka.filters.unsupervised.attribute.AddExpression.Operator
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
AddExpression

private class AddExpression.Operator
extends java.lang.Object
implements java.io.Serializable

Inner class for storing operators


Field Summary
protected  char m_operator
          the operator
 
Constructor Summary
AddExpression.Operator(char opp)
           
 
Method Summary
protected  double applyFunction(double value)
          Apply this operator (function) to the supplied argument
protected  double applyOperator(double first, double second)
          Apply this operator to the supplied arguments
 java.lang.String toString()
          Return a string describing this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_operator

protected char m_operator
the operator

Constructor Detail

AddExpression.Operator

public AddExpression.Operator(char opp)
Method Detail

applyOperator

protected double applyOperator(double first,
                               double second)
Apply this operator to the supplied arguments

Parameters:
first - the first argument
second - the second argument
Returns:
the result

applyFunction

protected double applyFunction(double value)
Apply this operator (function) to the supplied argument

Parameters:
value - the argument
Returns:
the result

toString

public java.lang.String toString()
Return a string describing this object

Returns:
a string descibing the operator