numericalMethods.calculus.minimizing
Class NumericalGradient

numericalMethods.calculus.minimizing.NumericalGradient
All Implemented Interfaces:
java.io.Serializable

public final class NumericalGradient
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
(package private)  double[] doubleArrayParameter
           
(package private)  numericalMethods.function.DoubleValued f
           
(package private)  numericalMethods.function.DoubleArrayParametrized F
           
(package private)  double h
           
(package private)  int n
           
 
Constructor Summary
NumericalGradient(numericalMethods.function.DoubleValued theF)
           
NumericalGradient(numericalMethods.function.DoubleValued theF, double theH)
           
 
Method Summary
 int getDoubleArrayParameterLength()
           
 double[] getDoubleArrayValue()
           
 void getDoubleArrayValue(double[] value, int offset)
           
 int getDoubleArrayValueLength()
           
 double getDoubleValue()
           
 double getH()
          Get the value of h.
 void getValue(double[] grad)
           
 void setByParameter(double[] p)
           
 void setDoubleArrayParameter(double[] p, int offset)
           
 void setH(double v)
          Set the value of h.
 

Field Detail

f

numericalMethods.function.DoubleValued f

F

numericalMethods.function.DoubleArrayParametrized F

n

int n

doubleArrayParameter

double[] doubleArrayParameter

h

double h
Constructor Detail

NumericalGradient

public NumericalGradient(numericalMethods.function.DoubleValued theF)

NumericalGradient

public NumericalGradient(numericalMethods.function.DoubleValued theF,
                         double theH)
Method Detail

getH

public double getH()
Get the value of h.
Returns:
Value of h.

setH

public void setH(double v)
Set the value of h.
Parameters:
v - Value to assign to h.

getDoubleValue

public double getDoubleValue()

setByParameter

public void setByParameter(double[] p)

setDoubleArrayParameter

public void setDoubleArrayParameter(double[] p,
                                    int offset)

getDoubleArrayParameterLength

public int getDoubleArrayParameterLength()

getDoubleArrayValueLength

public int getDoubleArrayValueLength()

getDoubleArrayValue

public double[] getDoubleArrayValue()

getValue

public void getValue(double[] grad)

getDoubleArrayValue

public void getDoubleArrayValue(double[] value,
                                int offset)