mymath
Class BinaryOptimizer

java.lang.Object
  extended by mymath.BinaryOptimizer

public class BinaryOptimizer
extends java.lang.Object


Constructor Summary
BinaryOptimizer()
           
 
Method Summary
static double[] binaryOptimization(BinaryOptimizable func, java.lang.Double leftbound, java.lang.Double rightbound, double init, double precision)
          find maximum of func insice [leftbound,rightbound] using binary search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryOptimizer

public BinaryOptimizer()
Method Detail

binaryOptimization

public static double[] binaryOptimization(BinaryOptimizable func,
                                          java.lang.Double leftbound,
                                          java.lang.Double rightbound,
                                          double init,
                                          double precision)
find maximum of func insice [leftbound,rightbound] using binary search. Unbounded search if leftbound = rightbound = null. Search starts at init. Search terminates when optimum bounded inside interval of length <= precision result[0] contains the maximizing argument result[1] contains the function value

Parameters:
func -
leftbound -
rightbound -
init -
Returns: