hr.fer.diplomski.seminar.pso
Class F1

java.lang.Object
  extended by hr.fer.diplomski.seminar.pso.F1
All Implemented Interfaces:
Function

public class F1
extends java.lang.Object
implements Function


Constructor Summary
F1()
           
 
Method Summary
 double evaluate(double[] parameters)
          Function evaluates given parameters
 int getDim()
           
 double[] getOpt()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

F1

public F1()
Method Detail

evaluate

public double evaluate(double[] parameters)
                throws java.lang.IllegalArgumentException
Function evaluates given parameters

Specified by:
evaluate in interface Function
Parameters:
parameters - point of evaluation
Returns:
function value in given point
Throws:
java.lang.IllegalArgumentException

getDim

public int getDim()
Specified by:
getDim in interface Function

getOpt

public double[] getOpt()
Specified by:
getOpt in interface Function