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 doubleThe allowed errorepsilonfor embedded bisection method.protected final ReliabilityFunctionTheReliabilityFunctionfor which the inverse is to determine. -
Constructor Summary
ConstructorsConstructorDescriptionInverseFunction(ReliabilityFunction reliabilityFunction) Constructs anInverseFunctionwith a givenReliabilityFunctionand an acceptable error of 1.0E-5.InverseFunction(ReliabilityFunction reliabilityFunction, double epsilon) Constructs anInverseFunctionwith a givenReliabilityFunctionand an errorepsilonfor the embedded bisection method. -
Method Summary
Methods inherited from class org.jreliability.function.SequentialFunction
getY
-
Field Details
-
reliabilityFunction
TheReliabilityFunctionfor which the inverse is to determine. -
epsilon
protected final double epsilonThe allowed errorepsilonfor embedded bisection method.
-
-
Constructor Details
-
InverseFunction
Constructs anInverseFunctionwith a givenReliabilityFunctionand an errorepsilonfor the embedded bisection method.- Parameters:
reliabilityFunction- the reliabilityFunctionepsilon- the error of the bisection method
-
InverseFunction
Constructs anInverseFunctionwith a givenReliabilityFunctionand an acceptable error of 1.0E-5.- Parameters:
reliabilityFunction- the reliabilityFunction
-
-
Method Details
-
getY
public double getY(double x) Description copied from interface:FunctionReturns theyvalue fory = f(x).- Parameters:
x- the x value- Returns:
- the y for y = f(x)
-