asu.seismo.signals.min1d
Class minimizable1d_fdg

java.lang.Object
  extended by asu.seismo.signals.min1d.minimizable1d_fdg
All Implemented Interfaces:
minimizable1d
Direct Known Subclasses:
blurset.objectivef, blurset.objectiveh, blursetCumFG.objectiveh

public abstract class minimizable1d_fdg
extends java.lang.Object
implements minimizable1d

Provides a function to approximate the gradient with finite differences.


Constructor Summary
minimizable1d_fdg()
           
 
Method Summary
 double checkGrad()
           
abstract  double getF()
          Get the value of the function
 double getF(doubleSignal1d grad)
          Get the value of the function and its gradient
 double getFDGrad(doubleSignal1d grad)
           
abstract  int getLength()
          Get length of the function argument
abstract  doubleSignal1d getX()
           
abstract  void setX(doubleSignal1d x)
          Set x value at with the function will be evaluated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

minimizable1d_fdg

public minimizable1d_fdg()
Method Detail

getFDGrad

public double getFDGrad(doubleSignal1d grad)
                 throws invalid_data_exception,
                        size_mismatch_exception
Throws:
invalid_data_exception
size_mismatch_exception

getF

public double getF(doubleSignal1d grad)
            throws invalid_data_exception,
                   size_mismatch_exception
Description copied from interface: minimizable1d
Get the value of the function and its gradient

Specified by:
getF in interface minimizable1d
Throws:
invalid_data_exception
size_mismatch_exception

setX

public abstract void setX(doubleSignal1d x)
                   throws invalid_data_exception,
                          size_mismatch_exception
Description copied from interface: minimizable1d
Set x value at with the function will be evaluated

Specified by:
setX in interface minimizable1d
Throws:
invalid_data_exception
size_mismatch_exception

getF

public abstract double getF()
                     throws invalid_data_exception,
                            size_mismatch_exception
Description copied from interface: minimizable1d
Get the value of the function

Specified by:
getF in interface minimizable1d
Throws:
invalid_data_exception
size_mismatch_exception

getLength

public abstract int getLength()
Description copied from interface: minimizable1d
Get length of the function argument

Specified by:
getLength in interface minimizable1d

getX

public abstract doubleSignal1d getX()
Specified by:
getX in interface minimizable1d

checkGrad

public double checkGrad()
                 throws invalid_data_exception,
                        size_mismatch_exception
Throws:
invalid_data_exception
size_mismatch_exception