Package org.jreliability.function
Class InverseFunction
- java.lang.Object
-
- org.jreliability.function.SequentialFunction
-
- org.jreliability.function.InverseFunction
-
- All Implemented Interfaces:
Function
public class InverseFunction extends SequentialFunction
TheInverseFunction
determines the inverse reliabilityR^-1(x)
. It calculates ay
inx = R(y)
for a givenx
and theReliabilityFunction
R(x)
via a bisection approach.
-
-
Field Summary
Fields Modifier and Type Field Description protected double
epsilon
The allowed errorepsilon
for embedded bisection method.protected ReliabilityFunction
reliabilityFunction
TheReliabilityFunction
for which the inverse is to determine.
-
Constructor Summary
Constructors Constructor Description InverseFunction(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getY(double x)
Returns they
value fory = f(x)
.-
Methods inherited from class org.jreliability.function.SequentialFunction
getY
-
-
-
-
Field Detail
-
reliabilityFunction
protected final ReliabilityFunction reliabilityFunction
TheReliabilityFunction
for which the inverse is to determine.
-
epsilon
protected final double epsilon
The allowed errorepsilon
for embedded bisection method.
-
-
Constructor Detail
-
InverseFunction
public InverseFunction(ReliabilityFunction reliabilityFunction, double epsilon)
Constructs anInverseFunction
with a givenReliabilityFunction
and an errorepsilon
for the embedded bisection method.- Parameters:
reliabilityFunction
- the reliabilityFunctionepsilon
- the error of the bisection method
-
InverseFunction
public InverseFunction(ReliabilityFunction reliabilityFunction)
Constructs anInverseFunction
with a givenReliabilityFunction
and an acceptable error of 1.0E-5.- Parameters:
reliabilityFunction
- the reliabilityFunction
-
-
Method Detail
-
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)
-
-