Package org.jreliability.function.common
Class SumReliabilityFunction
- java.lang.Object
-
- org.jreliability.function.ReliabilityFunctionSet
-
- org.jreliability.function.common.SumReliabilityFunction
-
- All Implemented Interfaces:
Function
,ReliabilityFunction
public class SumReliabilityFunction extends ReliabilityFunctionSet
TheSumReliabilityFunction
determines the sum of the specified set ofReliabilityFunction
s.
-
-
Field Summary
-
Fields inherited from class org.jreliability.function.ReliabilityFunctionSet
functions
-
-
Constructor Summary
Constructors Constructor Description SumReliabilityFunction()
Constructs aSumReliabilityFunction
.SumReliabilityFunction(java.util.Set<ReliabilityFunction> functions)
Constructs aSumReliabilityFunction
with a given set ofReliabilityFunction
s.
-
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.ReliabilityFunctionSet
add, getFunctions, getY
-
-
-
-
Constructor Detail
-
SumReliabilityFunction
public SumReliabilityFunction()
Constructs aSumReliabilityFunction
.
-
SumReliabilityFunction
public SumReliabilityFunction(java.util.Set<ReliabilityFunction> functions)
Constructs aSumReliabilityFunction
with a given set ofReliabilityFunction
s.- Parameters:
functions
- the reliability functions
-
-
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)
-
-