Class SampledReliabilityFunction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.Double> sortedSamples
      Sorted list of all samples.
      protected double step
      The x-stepsize.
      protected double[] yarray
      Array from the x values (as positions) to the y values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Double> getSamples()
      Returns all samples in an ordered List.
      double getY​(double x)
      Returns the y value for y = f(x).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jreliability.function.Function

        getY
    • Field Detail

      • sortedSamples

        protected java.util.List<java.lang.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 Detail

      • SampledReliabilityFunction

        public SampledReliabilityFunction​(java.util.Collection<java.lang.Double> samples)
        Parameters:
        samples - the collection of samples
    • Method Detail

      • getSamples

        public java.util.List<java.lang.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)