|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.function.PolynomialFunction2D
public class PolynomialFunction2D
A function in the form y = a0 + a1 * x + a2 * x^2 + ... + an *
x^n
. Instances of this class are immutable.
Constructor Summary | |
---|---|
PolynomialFunction2D(double[] coefficients)
Constructs a new polynomial function y = a0 + a1 * x + a2 * x^2 +
... |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests this function for equality with an arbitrary object. |
double[] |
getCoefficients()
Returns a copy of the coefficients array that was specified in the constructor. |
int |
getOrder()
Returns the order of the polynomial. |
double |
getValue(double x)
Returns the function value. |
int |
hashCode()
Returns a hash code for this instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolynomialFunction2D(double[] coefficients)
y = a0 + a1 * x + a2 * x^2 +
... + an * x^n
coefficients
- an array with the coefficients [a0, a1, ..., an]
(null
not permitted).Method Detail |
---|
public double[] getCoefficients()
public int getOrder()
public double getValue(double x)
getValue
in interface Function2D
x
- the x-value.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |