|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFunction.Function
Function.DirectProdFunction
Function.FourierPolynomial
public class FourierPolynomial
Describes a Fourier polynomial
by a list of terms and their coefficients, i.e. for a Fourier polynomial:
p(x) = ∑cα•Χα(x) it holds the mapping of α
to its coefficient cα.
| Constructor Summary | |
|---|---|
FourierPolynomial(long[] G,
java.lang.String id)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addUpdateTerm(long[] alpha,
double re,
double im)
adds the term to the polynomial if already exist, adds the coefficients |
Complex |
getCoeff(long[] alpha)
|
java.lang.String |
getId()
|
Complex |
getValue(long[] x)
Returns the value of the function for the input element in G. |
java.lang.String |
toMatlabScript(java.lang.String scriptName)
get the function as a Matlab script |
java.lang.String |
toString()
get the string representation of the polynomial |
| Methods inherited from class Function.DirectProdFunction |
|---|
calcEuclideanNorm, calcInfinityNorm, getG, setG |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FourierPolynomial(long[] G,
java.lang.String id)
throws FunctionException
id - unique identifier for the polynomial.
FunctionException| Method Detail |
|---|
public Complex getCoeff(long[] alpha)
alpha - the element (vector) for which the coefficient is fetched
public java.lang.String getId()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toMatlabScript(java.lang.String scriptName)
public void addUpdateTerm(long[] alpha,
double re,
double im)
alpha - the elementre - real partim - imaginary partpublic Complex getValue(long[] x)
DirectProdFunction
getValue in class DirectProdFunctionx: - input for the polynomial p
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||