|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFunction.Function
Function.DirectProdFunction
Function.XMLFourierPolynomial
public class XMLFourierPolynomial
An implementation of the abstract class Function used by class SFT, which defines a Function object by a given XML file that contains description of functions over G -> C , where G is the Cartesian product of Z_Ni. The representation is kept by storing elements in G and their function-coefficients.
The XML format should be as following:
| Constructor Summary | |
|---|---|
XMLFourierPolynomial(java.io.File XMLInputFile,
long[] G)
Constructs a XMLFunction object from an input XML file as described in the class documentation. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,FourierPolynomial> |
getPolynomials()
|
Complex |
getValue(long[] elem)
Returns the value of the function for the input element in G. |
boolean |
isRandom()
Specifies weather this XMLFunction object is "random" as described in the class documentation. |
void |
setG(long[] G)
Sets G to a new value. |
| Methods inherited from class Function.DirectProdFunction |
|---|
calcEuclideanNorm, calcInfinityNorm, getG |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLFourierPolynomial(java.io.File XMLInputFile,
long[] G)
throws FunctionException
XMLInputFile - The input XML file.G - The vector of values describing G, i.e. Cartesian product of Z_Ni.
FunctionException - If an XML parsing error occurred, I/O exception or invalid input.| Method Detail |
|---|
public Complex getValue(long[] elem)
getValue in class DirectProdFunctionelem - The element whose this function's value is calculated.
public boolean isRandom()
public void setG(long[] G)
throws FunctionException
DirectProdFunction
setG in class DirectProdFunctionG - The vector of values describing G, the domain of the function
FunctionException - If the one of the given values is less than or equals to 0.public java.util.Map<java.lang.String,FourierPolynomial> getPolynomials()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||