|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFunction.Function
Function.DirectProdFunction
public abstract class DirectProdFunction
An abstract extension to class Function, for describing functions over ZN1 x ... x ZNk → C.
| Constructor Summary | |
|---|---|
DirectProdFunction(long[] G)
Constructs a function object over G -> C for the given parameter G. |
|
| Method Summary | |
|---|---|
double |
calcEuclideanNorm()
Returns the Euclidean norm of this function over G. |
double |
calcInfinityNorm()
Returns the infinity norm of this function over G. |
long[] |
getG()
Returns the vector of values describing G, the domain of the function. |
abstract Complex |
getValue(long[] elem)
Returns the value of the function for the input element in G. |
void |
setG(long[] G)
Sets G to a new value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectProdFunction(long[] G)
throws FunctionException
G - A vector of values describing G, i.e. a Cartesian multiplication of Z_Ni,
the domain of the function.
FunctionException - If one of the given G-values is less than or equals to 0.| Method Detail |
|---|
public abstract Complex getValue(long[] elem)
elem - The element whose this function's value is calculated.
public double calcInfinityNorm()
calcInfinityNorm in class Functionpublic double calcEuclideanNorm()
calcEuclideanNorm in class Functionpublic long[] getG()
public void setG(long[] G)
throws FunctionException
G - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||