org.lsmp.djep.xjep.function
Class Min
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.lsmp.djep.xjep.function.SumType
org.lsmp.djep.xjep.function.Min
- All Implemented Interfaces:
- CallbackEvaluationI, PostfixMathCommandI
public class Min
- extends SumType
A min function Min(x^2,x,1,10) finds the min of x^2 with x running from 1 to 10.
- Author:
- Rich Morris
Created on 10-Sept-2004
| Fields inherited from class org.lsmp.djep.xjep.function.SumType |
name |
|
Constructor Summary |
Min()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Min
public Min()
evaluate
public Object evaluate(Object[] elements)
throws ParseException
- Description copied from class:
SumType
- Evaluates the function given the set of y values.
For example for Sum(x^2,x,1,5) the function will be passed the array [1,4,9,16,25].
- Specified by:
evaluate in class SumType
- Parameters:
elements - the y values
- Returns:
- the result of the function
- Throws:
ParseException
Copyright © 2014. All rights reserved.