SFT
Class SFTUtils.DiffFunction

java.lang.Object
  extended by Function.Function
      extended by Function.DirectProdFunction
          extended by SFT.SFTUtils.DiffFunction
Enclosing class:
SFTUtils

public static class SFTUtils.DiffFunction
extends DirectProdFunction

Class for calculating a difference function for two given functions f1, f2 s.t. DiffFunction(x) = f1(x) - f2(x)


Constructor Summary
SFTUtils.DiffFunction(long[] G, DirectProdFunction f1, DirectProdFunction f2)
           
 
Method Summary
 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.DiffFunction

public SFTUtils.DiffFunction(long[] G,
                             DirectProdFunction f1,
                             DirectProdFunction f2)
                      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.