|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFunction.Function
Function.FiniteAbelianFunction
public abstract class FiniteAbelianFunction
An abstract extension to class Function, for describing functions over a finite Abelian group G → C.
| Constructor Summary | |
|---|---|
FiniteAbelianFunction(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 FiniteAbelianFunction(long[][] G)
throws FunctionException
G - A vector of values describing G, i.e. a finite Abelian group described by (gj,Nj) j=1,...,k,
the domain of the function. In each G[i], the first coordinate is the generator and
the second coordinate is its order.
FunctionException - If one of the given G-values is less than or equals to 0 or one of the generators is not in range.| 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 | |||||||||