|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object taylor.Polyfit
public class Polyfit
A container class for sets of partial polynomials generated by polyfit method.
It's strongly recommended to use Solver
in stead of calling methods of this class.
Constructor Summary | |
---|---|
Polyfit(Element pol)
Loads container from XML. |
|
Polyfit(Polynomials pol)
Loads container with given partial polynomials. |
Method Summary | |
---|---|
void |
appendResults(Element pol)
Appends new sets of partial polynomials to this container. |
void |
appendResults(Polyfit pol)
Appends sets of partial polynomials from different result. |
double[] |
eval(double t)
Evaluates unknow functions at given time. |
double[][] |
eval(double[] t)
Evaluates all results at given times. |
double[] |
eval(int order,
double t)
Evaluates given order at given time. |
double[][] |
eval(int order,
double[] t)
Evaluates only given order at given times. |
double[][] |
eval(int polynomial,
int order,
double[] t)
Evaluates given polynomial and given order at times t. |
double[] |
eval(java.lang.String label,
double[] t)
Evaluates requested unknow function at given times. |
java.lang.String[] |
getLabels()
Returns array of labels of polynoms. |
int |
getNumberOfPoints()
Returns number of points used by getTArray . |
int[] |
getOrders()
Returns orders of partial polynomials. |
double |
getPlottmax()
Gets maximal time for plot. |
double |
getPlottmin()
Gets minimal time for plot. |
Polynomials |
getPolynomials(int poz)
Returns one set of partial polynomilas. |
int |
getSteps()
Returns number of partial polynomials generated for each unknown function. |
double[] |
getTArray()
Returns an array of time in range [ tmin , tmax ]
which is going to have n values. |
double |
getTmax()
Return maximal time for which were the polynomials generated. |
java.lang.String |
info()
Returns a basic information about equations. |
void |
setNumberOfPoints(int numberOfPoints)
Sets number of points used by getTArray to generate an array of time. |
void |
setPlottmax(double plottmax)
Sets maximal time for plot. |
void |
setPlottmin(double plottmin)
Sets minimal time for plot. |
int |
size()
Returns number of polynomials in each set. |
java.lang.String |
toString()
Returns string representation of polynomials. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Polyfit(Element pol) throws taylor.XML.XMLReadException
pol
- Element representing sets of partial polynomials.
taylor.XML.XMLReadException
public Polyfit(Polynomials pol)
pol
- Partial polynomials to load container with.Method Detail |
---|
public void appendResults(Element pol) throws taylor.XML.XMLReadException
pol
- XML Element representing new sets of partial polynomials.
taylor.XML.XMLReadException
public void appendResults(Polyfit pol)
pol
- Sets of partial polynomials to be appended.public int getNumberOfPoints()
getTArray
.
public void setNumberOfPoints(int numberOfPoints)
getTArray
to generate an array of time.
numberOfPoints
- Number of points.public double getPlottmax()
getTArray
.
public void setPlottmax(double plottmax)
getTArray
.
plottmax
- Maximal time.public double getPlottmin()
getTArray
.
public void setPlottmin(double plottmin)
getTArray
.
plottmin
- Minimal time.public double[] getTArray()
tmin
, tmax
]
which is going to have n
values.
public java.lang.String[] getLabels()
public double[] eval(java.lang.String label, double[] t)
label
- Label of unknow function to evaluate.t
- Times at which to evaluate.
public double[] eval(double t)
t
- Time at which you want the results.
public double[] eval(int order, double t)
eval
but it only evaluates at one time.
order
- Order to evaluate.t
- Time at which you want the results.
public double[][] eval(double[] t)
t
- Time array at which to evaluate results.
public double[][] eval(int order, double[] t)
order
- Order i which you want to evaluate.t
- Time array at whcich to evaluate.
public double[][] eval(int polynomial, int order, double[] t)
eval
is that this function evaluates only
the given partial polynomial on entire t.
polynomial
- Polynomial number to evaluate.order
- Order which you want to evaluate.t
- Time array at wchich to evaluate.
public Polynomials getPolynomials(int poz)
poz
- Which polynomial to return.
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
public java.lang.String info()
public double getTmax()
public int getSteps()
public int[] getOrders()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |