q1471341.mp1074.test
Class TestFactory

java.lang.Object
  extended byq1471341.mp1074.test.TestFactory

public class TestFactory
extends java.lang.Object

This package provides several tests for the integration framework.

Author:
Ulrich Telle

Constructor Summary
TestFactory()
           
 
Method Summary
static int fibonacci(int k)
          Calculates the k-th Fibonacci number.
static void testAlpha(javax.swing.JTextArea output)
          Test of the search for optimal lattice rules.
static void testChoice(javax.swing.JTextArea output)
          Test of choosing the generating vector z
static void testDimension(javax.swing.JTextArea output)
          Tests the influence of dimension and order on the integration error.
static void testFibonacci(javax.swing.JTextArea output)
          Test of Fibonacci lattice rules in 2 dimensions.
static void testGenz(javax.swing.JTextArea output, int countFactor, boolean periodize, int integrandClass, double difficulty)
          Tests the integration of integrands belonging to the Genz intgrand families.
static void testImplementation(javax.swing.JTextArea output)
          Tests the implementation of all implemented integration rules.
static void testPeriodizing(javax.swing.JTextArea output, int function)
          Tests the influence of periodizing the integrand.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestFactory

public TestFactory()
Method Detail

testImplementation

public static void testImplementation(javax.swing.JTextArea output)
Tests the implementation of all implemented integration rules.

Parameters:
output - text area for presenting the results

testDimension

public static void testDimension(javax.swing.JTextArea output)
Tests the influence of dimension and order on the integration error.

Parameters:
output - text area for presenting the results

testChoice

public static void testChoice(javax.swing.JTextArea output)
Test of choosing the generating vector z

Parameters:
output - text area for presenting the results

testAlpha

public static void testAlpha(javax.swing.JTextArea output)
Test of the search for optimal lattice rules.

Parameters:
output - text area for presenting the results

testPeriodizing

public static void testPeriodizing(javax.swing.JTextArea output,
                                   int function)
Tests the influence of periodizing the integrand.

Parameters:
output - text area for presenting the results
function - selection of the integrand 1: f(x,y) = y*exp(x*y)/(e-2) 2: f(x,y) = 1

testGenz

public static void testGenz(javax.swing.JTextArea output,
                            int countFactor,
                            boolean periodize,
                            int integrandClass,
                            double difficulty)
Tests the integration of integrands belonging to the Genz intgrand families.

Parameters:
output - text area for presenting the results
countFactor -
periodize - flag whether the integrand should be periodized of not
integrandClass - class of the integrand
difficulty - factor describing the desired complexity of the integrand

testFibonacci

public static void testFibonacci(javax.swing.JTextArea output)
Test of Fibonacci lattice rules in 2 dimensions.

Parameters:
output - text area for presenting the results

fibonacci

public static int fibonacci(int k)
Calculates the k-th Fibonacci number.

Parameters:
k - index of the requested Fibonacci number
Returns:
the requested Fibonacci number