|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectnumericalMethods.calculus.minimizing.NumericalGradient
| Constructor Summary | |
NumericalGradient(DoubleValued theF)
|
|
NumericalGradient(DoubleValued theF,
double theH)
|
|
| Method Summary | |
int |
getDoubleArrayParameterLength()
Get the length of the double array parameter. |
double[] |
getDoubleArrayValue()
|
void |
getDoubleArrayValue(double[] value,
int offset)
Writes the double array value into a
double[]. |
int |
getDoubleArrayValueLength()
Get the length of the double array value. |
double |
getDoubleValue()
Get the double value. |
double |
getH()
Get the value of h. |
void |
getValue(double[] grad)
|
void |
setByParameter(double[] p)
|
void |
setDoubleArrayParameter(double[] p,
int offset)
Set the double array parameter by the values in a
double[]. |
void |
setH(double v)
Set the value of h. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NumericalGradient(DoubleValued theF)
public NumericalGradient(DoubleValued theF,
double theH)
| Method Detail |
public double getH()
public void setH(double v)
v - Value to assign to h.public double getDoubleValue()
DoubleValueddouble value.
getDoubleValue in interface DoubleValueddouble value.public void setByParameter(double[] p)
public void setDoubleArrayParameter(double[] p,
int offset)
DoubleArrayParametrizeddouble array parameter by the values in a
double[]. The values for the double array
parameter are read from p[offset,…,offset + len -
1], where len is the value returned by DoubleArrayParametrized.getDoubleArrayParameterLength(). The parameter
p should not be changed.
setDoubleArrayParameter in interface DoubleArrayParametrizedp - a double[] whith length at least
offset+len holding the values to which the
double array parameter is set.offset - the position in p where the
double array parameter is read from.public int getDoubleArrayParameterLength()
DoubleArrayParametrizeddouble array parameter.
getDoubleArrayParameterLength in interface DoubleArrayParametrizeddouble array parameter.public int getDoubleArrayValueLength()
DoubleArrayValueddouble array value.
getDoubleArrayValueLength in interface DoubleArrayValueddouble array value.public double[] getDoubleArrayValue()
public void getValue(double[] grad)
public void getDoubleArrayValue(double[] value,
int offset)
DoubleArrayValueddouble array value into a
double[]. When the method returns,
value[offset,…,offset+len-1] contains the
double array value, where len is the value
returned by DoubleArrayValued.getDoubleArrayValueLength(). The other elements
of value should not be changed.
getDoubleArrayValue in interface DoubleArrayValuedvalue - a double[] whith length at least
offset+len, into which the double array
value is copied.offset - the position in value where the
double array value is copied to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||