QuasiRandom
Class Intgrnd_3

java.lang.Object
  extended byQuasiRandom.CubeFunction
      extended byQuasiRandom.SeparableCubeFunction
          extended byQuasiRandom.Intgrnd
              extended byQuasiRandom.Intgrnd_3

public class Intgrnd_3
extends Intgrnd

Intgrnd with g(u)=sin^2(2pi*u).


Field Summary
static double TWO_PI
           
 
Constructor Summary
Intgrnd_3(int dim, int m)
           
 
Method Summary
 double g(double u)
          The function defining the factor h as h(u)=g(m*u-[m*u]).
 java.lang.String getName()
          Identifier for the function.
 double gIntegral()
          The integral of g over (0,1).
 
Methods inherited from class QuasiRandom.Intgrnd
h, hIntegral
 
Methods inherited from class QuasiRandom.SeparableCubeFunction
integral, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TWO_PI

public static final double TWO_PI
See Also:
Constant Field Values
Constructor Detail

Intgrnd_3

public Intgrnd_3(int dim,
                 int m)
Parameters:
dim - dimension
m - number of periods of g on (0,1).
Method Detail

getName

public java.lang.String getName()
Description copied from class: CubeFunction
Identifier for the function.

Specified by:
getName in class CubeFunction

g

public double g(double u)
Description copied from class: Intgrnd
The function defining the factor h as h(u)=g(m*u-[m*u]).

Specified by:
g in class Intgrnd

gIntegral

public double gIntegral()
Description copied from class: Intgrnd
The integral of g over (0,1).

Specified by:
gIntegral in class Intgrnd