edu.jhu.bme.smile.commons.optimize
Class MinToMaxND

java.lang.Object
  extended by edu.jhu.bme.smile.commons.optimize.MinToMaxND
All Implemented Interfaces:
OptimizableNDContinuous

public class MinToMaxND
extends java.lang.Object
implements OptimizableNDContinuous

Finds the maximum of ND functions by negating the function and finding the minimum.

Author:
Hanlin Wan

Constructor Summary
MinToMaxND(OptimizableNDContinuous func)
          Constructor to create the negated function
 
Method Summary
 double[] getDomainMax()
          Gets the domain maximum
 double[] getDomainMin()
          Gets the domain minimum
 double getDomainTolerance()
          Gets the tolerance
 int getNumberOfDimensions()
          Gets the number of dimensions
 double getValue(double[] x)
          Gets the negated value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinToMaxND

public MinToMaxND(OptimizableNDContinuous func)
Constructor to create the negated function

Parameters:
func - function to negate
Method Detail

getDomainMax

public double[] getDomainMax()
Gets the domain maximum

Specified by:
getDomainMax in interface OptimizableNDContinuous
Returns:
domain max

getDomainMin

public double[] getDomainMin()
Gets the domain minimum

Specified by:
getDomainMin in interface OptimizableNDContinuous
Returns:
domain min

getDomainTolerance

public double getDomainTolerance()
Gets the tolerance

Specified by:
getDomainTolerance in interface OptimizableNDContinuous
Returns:
tolerance

getValue

public double getValue(double[] x)
Gets the negated value

Specified by:
getValue in interface OptimizableNDContinuous
Parameters:
x - location to get value at
Returns:
negated value at location x

getNumberOfDimensions

public int getNumberOfDimensions()
Gets the number of dimensions

Specified by:
getNumberOfDimensions in interface OptimizableNDContinuous
Returns:
number of dimensions