public class DoubleAD
extends java.lang.Number
DoubleAD
was created to extend the
current calculations of gradient to automatically include a calculation of the
Hessian vector product with another vector v
. This is used with the
Stochastic Meta Descent Optimization, but could be extended for use in any application
that requires an additional order of differentiation without explicitly creating the code.Constructor and Description |
---|
DoubleAD() |
DoubleAD(double initVal,
double initDot) |
Modifier and Type | Method and Description |
---|---|
double |
doubleValue() |
boolean |
equals(double valToCompare,
double dotToCompare) |
boolean |
equals(double valToCompare,
double dotToCompare,
double TOL) |
boolean |
equals(java.lang.Object obj) |
float |
floatValue() |
double |
getdot() |
double |
getval() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
void |
minusEquals(DoubleAD a) |
void |
minusEqualsConst(double a) |
void |
plusEquals(DoubleAD a) |
void |
plusEqualsConst(double a) |
void |
set(double value,
double dotValue) |
void |
setdot(double a) |
void |
setval(double a) |
java.lang.String |
toString() |
public DoubleAD()
public DoubleAD(double initVal, double initDot)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equals(double valToCompare, double dotToCompare)
public boolean equals(double valToCompare, double dotToCompare, double TOL)
public double getval()
public double getdot()
public void set(double value, double dotValue)
public void setval(double a)
public void setdot(double a)
public void plusEqualsConst(double a)
public void plusEquals(DoubleAD a)
public void minusEquals(DoubleAD a)
public void minusEqualsConst(double a)
public double doubleValue()
doubleValue
in class java.lang.Number
public float floatValue()
floatValue
in class java.lang.Number
public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object