|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.numerics.Polynomial
org.opensourcephysics.numerics.PolynomialLeastSquareFit
org.opensourcephysics.tools.KnownPolynomial
public class KnownPolynomial
A polynomial that implements KnownFunction.
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.numerics.Polynomial |
|---|
coefficients |
| Method Summary | |
|---|---|
java.lang.String |
getExpression(java.lang.String indepVarName)
Gets the equation. |
java.lang.String |
getName()
Gets the name of the function. |
int |
getParameterCount()
Gets the parameter count. |
java.lang.String |
getParameterName(int i)
Gets a parameter name. |
double |
getParameterValue(int i)
Gets a parameter value. |
void |
setParameterValue(int i,
double value)
Sets a parameter value. |
| Methods inherited from class org.opensourcephysics.numerics.PolynomialLeastSquareFit |
|---|
computeCoefficients, fitData |
| Methods inherited from class org.opensourcephysics.numerics.Polynomial |
|---|
add, add, coefficient, deflate, degree, derivative, divide, divide, divideWithRemainder, evalPolynomial, evaluate, getCoefficients, integral, integral, multiply, multiply, roots, rootsReal, subtract, subtract, toString, valueAndDerivative |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opensourcephysics.numerics.Function |
|---|
evaluate |
| Method Detail |
|---|
public int getParameterCount()
getParameterCount in interface KnownFunctionpublic java.lang.String getParameterName(int i)
getParameterName in interface KnownFunctioni - the parameter index
public double getParameterValue(int i)
getParameterValue in interface KnownFunctioni - the parameter index
public void setParameterValue(int i,
double value)
setParameterValue in interface KnownFunctioni - the parameter indexvalue - the valuepublic java.lang.String getExpression(java.lang.String indepVarName)
getExpression in interface KnownFunctionindepVarName - the name of the independent variable
public java.lang.String getName()
getName in interface KnownFunction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||