JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.formulae
Class Median

java.lang.Object
  |
  +--com.klg.jclass.util.formulae.Operation
        |
        +--com.klg.jclass.util.formulae.Median
All Implemented Interfaces:
Cloneable, Expression

public class Median
extends Operation

This operation computes the median value in a set of elements. The Median of a set is the middle element of the set, (*** or the average of the two middle values of a set. ***)


Field Summary
 
Fields inherited from class com.klg.jclass.util.formulae.Operation
leftOperand, rightOperand
 
Constructor Summary
Median(com.klg.jclass.util.formulae.Expression operand)
          Determine the Median of the given set
Median(com.klg.jclass.util.formulae.Expression operand1, com.klg.jclass.util.formulae.Expression operand2)
          Determine the Median of a pair of sets
 
Method Summary
 com.klg.jclass.util.formulae.Result evaluate()
          Return the median of the operands
 
Methods inherited from class com.klg.jclass.util.formulae.Operation
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Median

public Median(com.klg.jclass.util.formulae.Expression operand)
Determine the Median of the given set


Median

public Median(com.klg.jclass.util.formulae.Expression operand1,
              com.klg.jclass.util.formulae.Expression operand2)
Determine the Median of a pair of sets

Method Detail

evaluate

public com.klg.jclass.util.formulae.Result evaluate()
Return the median of the operands

Specified by:
evaluate in interface Expression
Specified by:
evaluate in class Operation
Returns:
The result of determining the middle value of the set

Copyright © 2004 Quest Software Inc..
All rights reserved.