Package pulse.math
Class AbstractIntegrator
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.util.Group
-
- pulse.util.Accessible
-
- pulse.util.PropertyHolder
-
- pulse.math.AbstractIntegrator
-
- All Implemented Interfaces:
Serializable,Descriptive,Reflexive
- Direct Known Subclasses:
CompositionProduct,FixedIntervalIntegrator
public abstract class AbstractIntegrator extends PropertyHolder implements Reflexive, Serializable
AnAbstractIntegratorserves to calculate the definite integral of a function. It defines the integration bounds in the form of aSegmentand two abstract methods, one to calculate the integrand as a function of one or more variables and the other to actually do the integration.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractIntegrator(Segment bounds)Creates anAbstractIntegratorwith the specified integration bounds.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SegmentgetBounds()Retrieves the integration boundsStringgetPrefix()abstract doubleintegrand(double... vars)Calculates the integrand function.abstract doubleintegrate()Calculates the definite integral within the specified integration bounds.voidsetBounds(Segment bounds)Simply sets the integration bounds tobounds-
Methods inherited from class pulse.util.PropertyHolder
addListener, areDetailsHidden, data, describe, firePropertyChanged, getDescriptor, getListeners, ignoreSiblings, initListeners, isListedNumericType, isListedParameter, listedKeywords, listedTypes, numericData, parameterListChanged, removeListeners, setPrefix, updateProperties, updateProperty
-
Methods inherited from class pulse.util.Accessible
accessibleChildren, genericProperties, genericProperty, numericProperties, numericProperty, property, set, update, update
-
Methods inherited from class pulse.util.UpwardsNavigable
addHierarchyListener, getHierarchyListeners, getParent, identify, removeHierarchyListener, removeHierarchyListeners, setParent, specificAncestor, tellParent
-
-
-
-
Constructor Detail
-
AbstractIntegrator
public AbstractIntegrator(Segment bounds)
Creates anAbstractIntegratorwith the specified integration bounds.- Parameters:
bounds- the integration bounds.
-
-
Method Detail
-
integrate
public abstract double integrate()
Calculates the definite integral within the specified integration bounds.- Returns:
- the value of the integral
-
integrand
public abstract double integrand(double... vars)
Calculates the integrand function.- Parameters:
vars- one or more variables- Returns:
- the value of the integrand at the specified variable values.
-
getBounds
public Segment getBounds()
Retrieves the integration bounds- Returns:
- the integration bounds.
-
setBounds
public void setBounds(Segment bounds)
Simply sets the integration bounds tobounds- Parameters:
bounds- the new integration bounds.
-
getPrefix
public String getPrefix()
- Overrides:
getPrefixin classPropertyHolder
-
-