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, setXValuesFromListOfPointspublic 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()
NumericalIntegrationMethodgetWeights in class NumericalIntegrationMethodpublic java.util.List<java.lang.Double> getXValues()
NumericalIntegrationMethodgetXValues in class NumericalIntegrationMethodpublic java.util.List<java.lang.Double> getRescalingFactors()
NumericalIntegrationMethodgetRescalingFactors in class NumericalIntegrationMethod