|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFEJDMath.ShapeFunction1D
FEJDMath.QuadraticFct1D
Represents a 1D quadratic function
Constructor Summary | |
QuadraticFct1D(int a,
int b,
int c)
Makes a new QuadraticFct1D of the form: a + b*X + c*X² |
Method Summary | |
double |
computeFctAt(double x)
Returns the value of the function at x |
double |
getCoeffElem(int i)
Returns the ith coefficient of the function |
void |
setCoeffElem(int i,
double value)
Sets the ith coefficient of the function to value |
void |
setNbOfCoeff(int i)
Sets the number of coefficients of the function to i |
java.lang.String |
toString()
Returns a description of the function |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QuadraticFct1D(int a, int b, int c)
Method Detail |
public double computeFctAt(double x)
ShapeFunction1D
computeFctAt
in class ShapeFunction1D
public java.lang.String toString()
toString
in class ShapeFunction1D
public double getCoeffElem(int i)
public void setCoeffElem(int i, double value)
public void setNbOfCoeff(int i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |