|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Algorithm>
org.n52.math.testforms.GenericAlgorithms
public class GenericAlgorithms
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
GenericAlgorithms()
|
|
| Method Summary | |
|---|---|
double[] |
calculate(double[] params)
Calculates the results of the AlgorithmN for the values in params. |
Algorithm |
getAlgorithm(int index)
returns the requested Algorithm |
int |
getNrAlgorithms()
|
int |
getNrParams()
|
java.lang.String |
getParamDescription(int paramNr)
may return a Description of the parameter. |
java.lang.String |
getParamName(int paramNr)
returns the Name of the parameter. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public GenericAlgorithms()
| Method Detail |
|---|
public double[] calculate(double[] params)
AlgorithmN
calculate in interface AlgorithmNpublic int getNrParams()
getNrParams in interface AlgorithmOnList
public java.lang.String getParamName(int paramNr)
throws java.lang.IndexOutOfBoundsException
AlgorithmOnListAlgorithms are supposed to use the same names
getParamName in interface AlgorithmOnListparamNr - starts counting at 0
paramNr
java.lang.IndexOutOfBoundsException - when paramNr is negative or larger or equal to {#getNrParams()}
public java.lang.String getParamDescription(int paramNr)
throws java.lang.IndexOutOfBoundsException
AlgorithmOnListAlgorithms are supposed to use the same description
getParamDescription in interface AlgorithmOnListparamNr - starts counting at 0
paramNr
java.lang.IndexOutOfBoundsException - when paramNr is negative or larger or equal to {#getNrParams()}public int getNrAlgorithms()
getNrAlgorithms in interface AlgorithmOnListAlgorithmspublic Algorithm getAlgorithm(int index)
AlgorithmOnList
getAlgorithm in interface AlgorithmOnList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||