public final class TrapezoidalRule extends NumericalIntegrationMethod
rescalingFactors, weights, xValues
Constructor and Description |
---|
TrapezoidalRule(double resolution)
Constructor.
|
TrapezoidalRule(java.util.List<java.lang.Double> points)
This constructor is set through a list of double instances that represents the point along the
integral.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Double> |
getRescalingFactors()
This method returns the rescaling factor for the numerical integration.
|
java.util.List<java.lang.Double> |
getWeights()
This method returns the weights associated to the numerical integration.
|
java.util.List<java.lang.Double> |
getXValues()
This method returns the x values for the numerical integration.
|
getLowerBound, getUpperBound, setLowerBound, setUpperBound, setXValuesFromListOfPoints
public TrapezoidalRule(double resolution)
resolution
- the distance between the x points (must be larger than 0)public TrapezoidalRule(java.util.List<java.lang.Double> points)
points
- a List of Double instancespublic java.util.List<java.lang.Double> getWeights()
NumericalIntegrationMethod
getWeights
in class NumericalIntegrationMethod
public java.util.List<java.lang.Double> getXValues()
NumericalIntegrationMethod
getXValues
in class NumericalIntegrationMethod
public java.util.List<java.lang.Double> getRescalingFactors()
NumericalIntegrationMethod
getRescalingFactors
in class NumericalIntegrationMethod