org.n52.operation.smac
Class SmacAlgorithm

java.lang.Object
  extended by org.n52.math.AbstractAlgorithm
      extended by org.n52.operation.smac.SmacAlgorithm
All Implemented Interfaces:
Algorithm

public class SmacAlgorithm
extends AbstractAlgorithm
implements Algorithm

Algorithm to execute the SMAC algorithm. References:

Code translated from SMACCalc.cs of "SMAC for ILWIS" written by Lichun Wang.

Author:
Wim Koolhoven

Method Summary
 double calculate(double[] params)
          calculates the result of the Algorithm for these parameters.
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.n52.math.AbstractAlgorithm
getDescription, getDocURL, getName, getNrParams, getParamDescription, getParamName, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.n52.math.Algorithm
getDescription, getDocURL, getName, getNrParams, getParamDescription, getParamName, getVersion
 

Method Detail

calculate

public double calculate(double[] params)
Description copied from interface: Algorithm
calculates the result of the Algorithm for these parameters. Calling the Algorithm multiple times with the same params has to be consistent

Specified by:
calculate in interface Algorithm
Parameters:
params - the Array has to have as many elements as specified with Algorithm.getNrParams()
Returns:
the result

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException