public abstract class Diff1Function1x1Base extends java.lang.Object implements Diff1Function1x1, Scannable, Clonable
Constructor and Description |
---|
Diff1Function1x1Base() |
Modifier and Type | Method and Description |
---|---|
Diff1Function1x1Base |
clone() |
abstract double |
eval(double in)
Evaluates the function at a prescribed input value.
|
abstract double |
eval(DoubleHolder deriv,
double in)
Evaluates both the value and first derivative of this function at a
specified input value.
|
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
eval, evalDeriv, evalDeriv
eval, inputSize
public abstract double eval(double in)
eval
in interface Function1x1
in
- input valuepublic abstract double eval(DoubleHolder deriv, double in)
eval
in interface Diff1Function1x1
deriv
- if non-null, returns the derivative valuein
- input valuepublic 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 Diff1Function1x1Base clone()