q1471341.mp1074.integration.lattice
Class FAlpha

java.lang.Object
  extended byq1471341.mp1074.integration.Integrand
      extended byq1471341.mp1074.integration.lattice.FAlpha

public class FAlpha
extends Integrand

This class implements the integrand function usually used in the optimization of generator vectors for lattice rules. Optimization is possible for three predefined values of alpha, namely alpha in { 2, 4, 6 }. The value of nCopy allows to optimize not only generator vectors for good lattice points lattice rules, but also for embedded copy rules.

Author:
Ulrich Telle

Field Summary
static int ALPHA_2
           
static int ALPHA_4
           
static int ALPHA_6
           
 
Constructor Summary
FAlpha(int dim)
          Constructs an instance of the integrand fucntion F_Alpha
FAlpha(int dim, int nCopy, int alpha)
          Constructor of class F_Alpha
 
Method Summary
 int dimension()
          Returns the dimension of the domain of the function.
 double evaluate(double[] x)
          Evaluates the integrand function at a given point x.
 void setCalculateDifference(boolean calculateDifference)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALPHA_2

public static final int ALPHA_2
See Also:
Constant Field Values

ALPHA_4

public static final int ALPHA_4
See Also:
Constant Field Values

ALPHA_6

public static final int ALPHA_6
See Also:
Constant Field Values
Constructor Detail

FAlpha

public FAlpha(int dim)
Constructs an instance of the integrand fucntion F_Alpha

Parameters:
dim - the spatial dimension.

FAlpha

public FAlpha(int dim,
              int nCopy,
              int alpha)
Constructor of class F_Alpha

Parameters:
dim - the spatial dimension.
nCopy - copy value of embedded lattice rule if applicable
alpha - requested goodness of approximation
Method Detail

dimension

public int dimension()
Description copied from class: Integrand
Returns the dimension of the domain of the function.

Specified by:
dimension in class Integrand
Returns:
Returns the dimension of the integrand domain

evaluate

public double evaluate(double[] x)
Evaluates the integrand function at a given point x.

Specified by:
evaluate in class Integrand
Parameters:
x - point at which the integrand is to be evaluated
Returns:
value of the integrand function.

toString

public java.lang.String toString()
Returns:
Returns a description of the integrand.

setCalculateDifference

public void setCalculateDifference(boolean calculateDifference)
Parameters:
calculateDifference - The calculateDifference to set. Note: This flag is only used while optimizing generator vectors for lattice rules.