anl.aida.parser
Class ASTMean

java.lang.Object
  extended by anl.aida.parser.SimpleNode
      extended by anl.aida.parser.AggregateFuncNode
          extended by anl.aida.parser.ASTMean
All Implemented Interfaces:
Node

public class ASTMean
extends AggregateFuncNode


Field Summary
private  int count
           
private  double val
           
 
Fields inherited from class anl.aida.parser.SimpleNode
children, DEG_TO_RAD_FACTOR, id, info, parent, parser
 
Constructor Summary
ASTMean(int id)
           
ASTMean(Parser p, int id)
           
 
Method Summary
 FormulaArray evaluate(Frame frame)
          Evaluates this Node.
 
Methods inherited from class anl.aida.parser.AggregateFuncNode
gatherInfo, max, min
 
Methods inherited from class anl.aida.parser.SimpleNode
dump, getInfo, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, preprocess, setInfo, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

val

private double val

count

private int count
Constructor Detail

ASTMean

public ASTMean(int id)

ASTMean

public ASTMean(Parser p,
               int id)
Method Detail

evaluate

public FormulaArray evaluate(Frame frame)
                      throws IllegalFormulaException
Evaluates this Node.

Specified by:
evaluate in interface Node
Overrides:
evaluate in class SimpleNode
Parameters:
frame -
Returns:
the result of the evaluation.
Throws:
IllegalFormulaException