QuasiRandom
Class SeparableCubeFunction

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

public abstract class SeparableCubeFunction
extends CubeFunction

Separable Function f(x)=h(x_1)*h(x_2)*...*h(x_d) defined on the unit cube Q=(0,1)^d. The same one dimensional function h in all factors.


Constructor Summary
SeparableCubeFunction(int dim)
           
 
Method Summary
abstract  double h(double u)
          The function h=h(u) of one variable u defining this function f as f(x)=h(x_1)*h(x_2)*....*h(x_d), where d=dim.
abstract  double hIntegral()
          Integral of h over (0,1).
 double integral()
          The integral of this over the unit cube Q=(0,1)^dim.
 double value(double[] x)
          The value of this at the point x.
 
Methods inherited from class QuasiRandom.CubeFunction
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeparableCubeFunction

public SeparableCubeFunction(int dim)
Parameters:
dim - dimension
Method Detail

h

public abstract double h(double u)

The function h=h(u) of one variable u defining this function f as f(x)=h(x_1)*h(x_2)*....*h(x_d), where d=dim.

Parameters:
u - independent one dimensional variable.

hIntegral

public abstract double hIntegral()
Integral of h over (0,1).


value

public double value(double[] x)
The value of this at the point x.

Specified by:
value in class CubeFunction
Parameters:
x - vector of independent variables.

integral

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

Specified by:
integral in class CubeFunction