q1471341.mp1074.integration
Class Integrand

java.lang.Object
  extended byq1471341.mp1074.integration.Integrand
Direct Known Subclasses:
FAlpha, GenzTestIntegrands.GenzContinuous, GenzTestIntegrands.GenzCornerPeak, GenzTestIntegrands.GenzDiscontinuous, GenzTestIntegrands.GenzGaussian, GenzTestIntegrands.GenzOscillatory, GenzTestIntegrands.GenzProductPeak, SimpleTestIntegrands.F2DTest, SimpleTestIntegrands.FOne

public abstract class Integrand
extends java.lang.Object

Models a mathematical function used as an integrand. The function is a mapping from R^s to R, where R is the real numbers, and s the dimension of the function. The function's dimension s is fixed for any one instance, but may vary between instantiations, for example depending on the constructor. The dimension is obtained by the method getDimension.

Author:
Ulrich Telle

Constructor Summary
Integrand()
           
 
Method Summary
abstract  int dimension()
          Returns the dimension of the domain of the function.
abstract  double evaluate(double[] x)
          Evaluates the integrand at the specified point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Integrand

public Integrand()
Method Detail

dimension

public abstract int dimension()
Returns the dimension of the domain of the function.

Returns:
the number of dimensions of the domain of the function

evaluate

public abstract double evaluate(double[] x)
Evaluates the integrand at the specified point. The method should check for the correct size of the argument vector x. The protected method checkArgument may be used for this purpose.

Parameters:
x - the point in R^s where the integrand is to be evaluated
Returns:
the value of the integrand at x
Throws:
java.lang.IllegalArgumentException - if x.length != dimension of the integrand domain