Class SampledReliabilityFunction

java.lang.Object
org.jreliability.function.SequentialFunction
org.jreliability.function.common.SampledReliabilityFunction
All Implemented Interfaces:
Function, ReliabilityFunction

public class SampledReliabilityFunction extends SequentialFunction implements ReliabilityFunction
The SampledReliabilityFunction approximates a ReliabilityFunction from a set of Samples.
  • Field Details

    • sortedSamples

      protected List<Double> sortedSamples
      Sorted list of all samples.
    • yarray

      protected final double[] yarray
      Array from the x values (as positions) to the y values.
    • step

      protected final double step
      The x-stepsize.
  • Constructor Details

  • Method Details

    • getSamples

      public List<Double> getSamples()
      Returns all samples in an ordered List.
      Returns:
      all samples
    • 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)