SFT
Class SFTUtils.ResultFunction

java.lang.Object
  extended by Function.Function
      extended by Function.DirectProdFunction
          extended by SFT.SFTUtils.ResultFunction
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SFTUtils

public static class SFTUtils.ResultFunction
extends DirectProdFunction
implements java.io.Serializable

class for creating a function from the results of the SFT algorithm.

See Also:
Serialized Form

Constructor Summary
SFTUtils.ResultFunction(long[] G, java.util.Map<long[],Complex> sftRes)
           
 
Method Summary
 java.util.Map<long[],Complex> getMapping()
           
 Complex getValue(long[] elem)
          Returns the value of the function for the input element in G.
 
Methods inherited from class Function.DirectProdFunction
calcEuclideanNorm, calcInfinityNorm, getG, setG
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SFTUtils.ResultFunction

public SFTUtils.ResultFunction(long[] G,
                               java.util.Map<long[],Complex> sftRes)
                        throws FunctionException
Throws:
FunctionException
Method Detail

getValue

public Complex getValue(long[] elem)
Description copied from class: DirectProdFunction
Returns the value of the function for the input element in G.

Specified by:
getValue in class DirectProdFunction
Parameters:
elem - The element whose this function's value is calculated.
Returns:
The value of the function for the input element in G.

getMapping

public java.util.Map<long[],Complex> getMapping()