Package org.jreliability.function
Class InverseFunction
java.lang.Object
org.jreliability.function.SequentialFunction
org.jreliability.function.InverseFunction
- All Implemented Interfaces:
Function
The
InverseFunction
determines the inverse reliability
R^-1(x)
. It calculates a y
in x = R(y)
for a given x
and the ReliabilityFunction
R(x)
via a bisection approach.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final double
The allowed errorepsilon
for embedded bisection method.protected final ReliabilityFunction
TheReliabilityFunction
for which the inverse is to determine. -
Constructor Summary
ConstructorsConstructorDescriptionInverseFunction
(ReliabilityFunction reliabilityFunction) Constructs anInverseFunction
with a givenReliabilityFunction
and an acceptable error of 1.0E-5.InverseFunction
(ReliabilityFunction reliabilityFunction, double epsilon) Constructs anInverseFunction
with a givenReliabilityFunction
and an errorepsilon
for the embedded bisection method. -
Method Summary
Methods inherited from class org.jreliability.function.SequentialFunction
getY
-
Field Details
-
reliabilityFunction
TheReliabilityFunction
for which the inverse is to determine. -
epsilon
protected final double epsilonThe allowed errorepsilon
for embedded bisection method.
-
-
Constructor Details
-
InverseFunction
Constructs anInverseFunction
with a givenReliabilityFunction
and an errorepsilon
for the embedded bisection method.- Parameters:
reliabilityFunction
- the reliabilityFunctionepsilon
- the error of the bisection method
-
InverseFunction
Constructs anInverseFunction
with a givenReliabilityFunction
and an acceptable error of 1.0E-5.- Parameters:
reliabilityFunction
- the reliabilityFunction
-
-
Method Details
-
getY
public double getY(double x) Description copied from interface:Function
Returns they
value fory = f(x)
.- Parameters:
x
- the x value- Returns:
- the y for y = f(x)
-