de.torstennahm.integrate.quadratureformula
Class Patterson

java.lang.Object
  extended by de.torstennahm.integrate.quadratureformula.AbstractCachedGenerator
      extended by de.torstennahm.integrate.quadratureformula.Patterson
All Implemented Interfaces:
Generator

public class Patterson
extends AbstractCachedGenerator

This class generates the weights for the Patterson quadrature formula.

According to general Generator contract, this class is thread-safe.

Author:
Torsten Nahm

Field Summary
 
Fields inherited from class de.torstennahm.integrate.quadratureformula.AbstractCachedGenerator
levelCache, weightsCache
 
Constructor Summary
Patterson()
           
 
Method Summary
 QuadratureFormula generateByLevel(int level)
           
 QuadratureFormula generateByNodes(int nodesRequested)
           
 int maxLevel()
          Returns the maximum argument supported by getByLevel.
 int maxNodes()
          Returns the maximum argument supported by getByNodes.
 java.lang.String toString()
           
 
Methods inherited from class de.torstennahm.integrate.quadratureformula.AbstractCachedGenerator
getByLevel, getByNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Patterson

public Patterson()
Method Detail

maxLevel

public int maxLevel()
Description copied from interface: Generator
Returns the maximum argument supported by getByLevel.

Returns:
maximum level, or -1 for no maximum

maxNodes

public int maxNodes()
Description copied from interface: Generator
Returns the maximum argument supported by getByNodes.

Returns:
maximum number of nodes, or -1 for no maximum

generateByNodes

public QuadratureFormula generateByNodes(int nodesRequested)
Specified by:
generateByNodes in class AbstractCachedGenerator

generateByLevel

public QuadratureFormula generateByLevel(int level)
Specified by:
generateByLevel in class AbstractCachedGenerator

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object