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. ***)
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 |
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
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