|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.graph.math.Curve
org.faceless.graph.math.FunctionCurve
public abstract class FunctionCurve
A Function Curve is the abstract superclass of any curves that represent
a mathematical function. This is basically anything that isn't a DataCurve
.
The primary difference between a Function curve and a Data curve is that the former is sampled at many different positions on the curve to obtain an approximation of the curve, while a DataCurve is sampled only where a data entry exists
Constructor Summary | |
---|---|
FunctionCurve()
|
Method Summary | |
---|---|
double |
getMax()
Return the maximum value that is defined for this curve. |
double |
getMin()
Return the minimum value that is defined for this curve. |
boolean |
point(double x)
If a marker is to be placed at this point on the curve then return true, otherwise return false. |
double[] |
steps()
Return the points on the curve that it should be sampled at to get an accurate picture of it. |
Methods inherited from class org.faceless.graph.math.Curve |
---|
get |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionCurve()
Method Detail |
---|
public boolean point(double x)
Curve
FunctionCurve
will return
false, but curves that have been fitted to a DataCurve
may
return any points from that DataCurve
that are matched
exactly by the fitted curve.
point
in class Curve
public double[] steps()
Curve
FunctionCurve
may return
an empty list if they wish, or if there are certain points that the
curve must be sampled at, it can return them here.
steps
in class Curve
public double getMin()
Curve
Double.POSITIVE_INFINITY
(yes, positive)
getMin
in class Curve
public double getMax()
Curve
Double.NEGATIVE_INFINITY
(yes, negative)
getMax
in class Curve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |