QuasiRandom
Class CubeFunction

java.lang.Object
  extended byQuasiRandom.CubeFunction
Direct Known Subclasses:
SeparableCubeFunction

public abstract class CubeFunction
extends java.lang.Object

Function of several variables double[] x defined on the unit cube Q=(0,1)^dim and intended to be used as an integrand to check the effectiveness of the various low discrepancy sequences in QMC integration.


Constructor Summary
CubeFunction(int dim)
           
 
Method Summary
abstract  java.lang.String getName()
          Identifier for the function.
abstract  double integral()
          The integral of this over the unit cube Q=(0,1)^dim.
abstract  double value(double[] x)
          Value at x.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubeFunction

public CubeFunction(int dim)
Parameters:
dim - dimension of the argument vector
Method Detail

getName

public abstract java.lang.String getName()
Identifier for the function.


value

public abstract double value(double[] x)
Value at x.

Parameters:
x - vector of independent variables x\in Q=(0,1)^dim

integral

public abstract double integral()
The integral of this over the unit cube Q=(0,1)^dim.