Class SLReliabilityFunction<T>

java.lang.Object
org.jreliability.function.SequentialFunction
org.jreliability.sl.SLReliabilityFunction<T>
Type Parameters:
T - the type of variable
All Implemented Interfaces:
Function, ReliabilityFunction

public class SLReliabilityFunction<T> extends SequentialFunction implements ReliabilityFunction
The SLReliabilityFunction represents the ReliabilityFunction using stochastic logic as implemented by SL.
  • Field Details

  • Constructor Details

    • SLReliabilityFunction

      public SLReliabilityFunction(SL<T> stochasticLogic, org.apache.commons.collections15.Transformer<T,ReliabilityFunction> functionTransformer)
      Constructs a SLReliabilityFunction with a given SL and Transformer.
      Parameters:
      stochasticLogic - the stochastic logic representing the reliabilityFunction
      functionTransformer - the functionTransformer to transform stochastic logic elements to reliabilityFunction
  • Method Details

    • getY

      public double getY(double x)
      Description copied from interface: Function
      Returns the y value for y = f(x).
      Specified by:
      getY in interface Function
      Parameters:
      x - the x value
      Returns:
      the y for y = f(x)