public abstract class Diff1FunctionNx1Base extends java.lang.Object implements Diff1FunctionNx1, Scannable, Clonable
Constructor and Description |
---|
Diff1FunctionNx1Base() |
Modifier and Type | Method and Description |
---|---|
Diff1FunctionNx1Base |
clone() |
abstract double |
eval(VectorNd in)
Evaluates this function for the specified inputs.
|
abstract double |
eval(VectorNd deriv,
VectorNd in)
Evaluates this function for the specified inputs.
|
boolean |
isWritable()
Returns
true if this component should in fact be written to
secondary storage. |
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer.
|
void |
write(java.io.PrintWriter pw,
NumberFormat fmt,
java.lang.Object ref)
Writes a text description of this element to a PrintWriter.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evalDeriv
inputSize
public abstract double eval(VectorNd in)
FunctionNx1.inputSize()
.eval
in interface FunctionNx1
public abstract double eval(VectorNd deriv, VectorNd in)
deriv
is not
null
, the derivative is also computed and returned in this
argument. The input vector size should equal the value returned by FunctionNx1.inputSize()
. If present, deriv
will be resized, if necessary, to
FunctionNx1.inputSize()
.eval
in interface Diff1FunctionNx1
deriv
- if not null
, returns the derivative valuesin
- function input valuespublic boolean isWritable()
Scannable
true
if this component should in fact be written to
secondary storage. This gives subclasses control over whether or
not they are actually written out.isWritable
in interface Scannable
true
if this component should be written to
secondary storage.public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
Scannable
write
.public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
Scannable
scan
and complete
enough to allow full reconstruction of the element.public Diff1FunctionNx1Base clone()