Package com.irurueta.numerical.roots
Class RootEstimator
java.lang.Object
com.irurueta.numerical.roots.RootEstimator
- Direct Known Subclasses:
- PolynomialRootsEstimator,- SingleRootEstimator
Abstract class to find roots of functions.
 A root is the locus of points (set of points) where the value of a given
 function equals to zero.
 Usually root estimators will only find a single root around an initial
 coarsely estimated solution.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanBoolean indicating that this instance is locked because it is doing computations.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidestimate()Estimates the root or roots for a given function.booleanisLocked()Returns boolean indicating whether this instance is locked.booleanisReady()Returns boolean indicating whether enough parameters have been provided in order to start the estimation of the roots of a function.
- 
Field Details- 
lockedprotected boolean lockedBoolean indicating that this instance is locked because it is doing computations. Attempting to change any parameters while being locked will raise a LockedException.
 
- 
- 
Constructor Details- 
RootEstimatorprotected RootEstimator()Constructor.
 
- 
- 
Method Details- 
isLockedpublic boolean isLocked()Returns boolean indicating whether this instance is locked. An instance is locked while it is doing computations. Attempting to change any parameters while being locked will raise a LockedException.- Returns:
- Boolean indicating whether this instance is locked.
 
- 
estimateEstimates the root or roots for a given function.- Throws:
- LockedException- Exception raised if this instance is already locked.
- NotReadyException- Exception raised if not enough parameters have been provided in order to start the estimation.
- RootEstimationException- Raised if the root estimation failed for some other reason (usually inability to evaluate the function, numerical instability or convergence problems, or no roots are found).
 
- 
isReadypublic boolean isReady()Returns boolean indicating whether enough parameters have been provided in order to start the estimation of the roots of a function.- Returns:
- True if this instance is ready to start the root estimation, false otherwise.
 
 
-