Package org.jreliability.function.common
Class ConstantFailureFunction
- java.lang.Object
-
- org.jreliability.function.SequentialFunction
-
- org.jreliability.function.common.ConstantReliabilityFunction
-
- org.jreliability.function.common.ConstantFailureFunction
-
- All Implemented Interfaces:
Function
,ReliabilityFunction
public class ConstantFailureFunction extends ConstantReliabilityFunction
TheConstantFailureFunction
returns a constant failure probability for which it must hold that
0 =< failure probability =< 1
.
-
-
Field Summary
-
Fields inherited from class org.jreliability.function.common.ConstantReliabilityFunction
successProbability
-
-
Constructor Summary
Constructors Constructor Description ConstantFailureFunction(double failureProbability)
-
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
-
-
-
-
Method Detail
-
getY
public double getY(double x)
Description copied from interface:Function
Returns they
value fory = f(x)
.- Specified by:
getY
in interfaceFunction
- Overrides:
getY
in classConstantReliabilityFunction
- Parameters:
x
- the x value- Returns:
- the y for y = f(x)
-
-