public abstract class AbstractDiscretizedFunc extends AbstractXY_DataSet implements DiscretizedFunc
Description: Abstract implementation of the DiscretizedFuncAPI. Performs standard simple or default functions so that subclasses don't have to keep reimplementing the same function bodies.
A Discretized Function is a collection of x and y values grouped together as the points that describe a function. A discretized form of a function is the only ways computers can represent functions. Instead of having y=x^2, you would have a sample of possible x and y values.
The basic functions this abstract class implements are:
| Modifier and Type | Field and Description |
|---|---|
protected static String |
C
Class name used for debbuging
|
protected static boolean |
D
if true print out debugging statements
|
protected double |
tolerance
The tolerance allowed in specifying a x-value near a real x-value, so that
the real x-value is used.
|
info, name, xAxisName, yAxisName| Constructor and Description |
|---|
AbstractDiscretizedFunc() |
| Modifier and Type | Method and Description |
|---|---|
double |
calcSumOfY_Vals() |
boolean |
equals(Object obj)
Default equals for all Discretized Functions.
|
double |
getTolerance()
Returns the tolerance of this function.
|
void |
scale(double val)
Scales (multiplies) the y-values of this function by the esupplied value.
|
void |
setTolerance(double newTolerance)
Sets the tolerance of this function.
|
areAllXValuesInteger, getClosestX, getClosestY, getInfo, getXAxisName, getXValuesIterator, getYAxisName, getYValuesIterator, iterator, name, setInfo, setName, setXAxisName, setYAxisName, xValues, yValuesclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeepClone, getFirstInterpolatedX_inLogXLogYDomain, getFirstInterpolatedX, getIndex, getInterpolatedY_inLogXLogYDomain, getInterpolatedY_inLogYDomain, getInterpolatedY, getXIndex, getYareAllXValuesInteger, get, getClosestX, getClosestY, getInfo, getMaxX, getMaxY, getMetadataString, getMinX, getMinY, getNum, getX, getXAxisName, getXValuesIterator, getY, getYAxisName, getYValuesIterator, hasPoint, hasPoint, set, set, set, setInfo, setName, setXAxisName, setYAxisName, toString, xValues, yValuesforEach, iterator, spliteratorprotected static final String C
protected static final boolean D
protected double tolerance
public double getTolerance()
getTolerance in interface DiscretizedFuncpublic void setTolerance(double newTolerance)
setTolerance in interface DiscretizedFuncIllegalArgumentException - if tolerance is less than zeropublic boolean equals(Object obj)
public double calcSumOfY_Vals()
public void scale(double val)
DiscretizedFuncscale in interface DiscretizedFunc