Package pulse.math
Class SimpsonIntegrator
-
- All Implemented Interfaces:
Serializable
,Descriptive
,Reflexive
public abstract class SimpsonIntegrator extends FixedIntervalIntegrator
Implements the Simpson's integration rule for the evaluation of definite integrals.- See Also:
- Wiki page, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpsonIntegrator(Segment bounds)
SimpsonIntegrator(Segment bounds, NumericProperty segments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
integrate()
Performs the integration with the Simpson's rule.-
Methods inherited from class pulse.math.FixedIntervalIntegrator
getIntegrationSegments, getPrefix, listedKeywords, set, setBounds, setIntegrationSegments, stepSize, toString
-
Methods inherited from class pulse.math.AbstractIntegrator
getBounds, integrand
-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, data, describe, firePropertyChanged, getDescriptor, getListeners, ignoreSiblings, initListeners, isListedNumericType, isListedParameter, listedTypes, numericData, parameterListChanged, removeListeners, setPrefix, updateProperties, updateProperty
-
Methods inherited from class pulse.util.Accessible
accessibleChildren, genericProperties, genericProperty, numericProperties, numericProperty, property, update, update
-
Methods inherited from class pulse.util.UpwardsNavigable
addHierarchyListener, getHierarchyListeners, getParent, identify, removeHierarchyListener, removeHierarchyListeners, setParent, specificAncestor, tellParent
-
-
-
-
Constructor Detail
-
SimpsonIntegrator
public SimpsonIntegrator(Segment bounds)
-
SimpsonIntegrator
public SimpsonIntegrator(Segment bounds, NumericProperty segments)
-
-
Method Detail
-
integrate
public double integrate()
Performs the integration with the Simpson's rule. Based on: https://introcs.cs.princeton.edu/java/93integration/SimpsonsRule.java.html- Specified by:
integrate
in classAbstractIntegrator
- Returns:
- the value of the integral
-
-