JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util.formulae
Class GeometricMean

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

public class GeometricMean
extends Operation

This operation computes the geometric mean of a set of numbers Geometric mean is defined as the Nth root of the product of a set of N numbers.


Field Summary
 
Fields inherited from class com.klg.jclass.util.formulae.Operation
leftOperand, rightOperand
 
Constructor Summary
GeometricMean(com.klg.jclass.util.formulae.Expression operand)
          The geometric mean of the given list of elements
GeometricMean(com.klg.jclass.util.formulae.Expression left, com.klg.jclass.util.formulae.Expression right)
          Geometric mean of a pair of Expressions
GeometricMean(com.klg.jclass.util.formulae.Expression left, Number right)
          Geometric mean of an Expression and a Number
GeometricMean(Number left, com.klg.jclass.util.formulae.Expression right)
          Geometric mean of a Number and an Expression
GeometricMean(Number left, Number right)
          Geometric mean of two Numbers
 
Method Summary
 com.klg.jclass.util.formulae.Result evaluate()
          Return the result of computing the geometric mean 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

GeometricMean

public GeometricMean(com.klg.jclass.util.formulae.Expression operand)
The geometric mean of the given list of elements


GeometricMean

public GeometricMean(com.klg.jclass.util.formulae.Expression left,
                     com.klg.jclass.util.formulae.Expression right)
Geometric mean of a pair of Expressions


GeometricMean

public GeometricMean(com.klg.jclass.util.formulae.Expression left,
                     Number right)
Geometric mean of an Expression and a Number


GeometricMean

public GeometricMean(Number left,
                     com.klg.jclass.util.formulae.Expression right)
Geometric mean of a Number and an Expression


GeometricMean

public GeometricMean(Number left,
                     Number right)
Geometric mean of two Numbers

Method Detail

evaluate

public com.klg.jclass.util.formulae.Result evaluate()
Return the result of computing the geometric mean of the operands

Specified by:
evaluate in interface Expression
Specified by:
evaluate in class Operation
Returns:
The geometric mean of all the operands

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