Package org.hipparchus.analysis.solvers
Class BracketedUnivariateSolver.Interval
- java.lang.Object
-
- org.hipparchus.analysis.solvers.BracketedUnivariateSolver.Interval
-
- Enclosing interface:
- BracketedUnivariateSolver<F extends UnivariateFunction>
public static class BracketedUnivariateSolver.Interval extends Object
An interval of a function that brackets a root.Contains two end points and the value of the function at the two end points.
-
-
Constructor Summary
Constructors Constructor Description Interval(double leftAbscissa, double leftValue, double rightAbscissa, double rightValue)
Construct a new interval with the given end points.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLeftAbscissa()
Get the left abscissa.double
getLeftValue()
Get the function value atgetLeftAbscissa()
.double
getRightAbscissa()
Get the right abscissa.double
getRightValue()
Get the function value atgetRightAbscissa()
.double
getSide(AllowedSolution allowed)
Get the abscissa corresponding to the allowed side.
-
-
-
Constructor Detail
-
Interval
public Interval(double leftAbscissa, double leftValue, double rightAbscissa, double rightValue)
Construct a new interval with the given end points.- Parameters:
leftAbscissa
- is the abscissa value at the left side of the interval.leftValue
- is the function value atleftAbscissa
.rightAbscissa
- is the abscissa value on the right side of the interval. Must be greater than or equal toleftAbscissa
.rightValue
- is the function value atrightAbscissa
.
-
-
Method Detail
-
getLeftAbscissa
public double getLeftAbscissa()
Get the left abscissa.- Returns:
- abscissa of the start of the interval.
-
getRightAbscissa
public double getRightAbscissa()
Get the right abscissa.- Returns:
- abscissa of the end of the interval.
-
getLeftValue
public double getLeftValue()
Get the function value atgetLeftAbscissa()
.- Returns:
- value of the function at the start of the interval.
-
getRightValue
public double getRightValue()
Get the function value atgetRightAbscissa()
.- Returns:
- value of the function at the end of the interval.
-
getSide
public double getSide(AllowedSolution allowed)
Get the abscissa corresponding to the allowed side.- Parameters:
allowed
- side of the root.- Returns:
- the abscissa on the selected side of the root.
-
-