Class Sampling.Result<T>

  • Type Parameters:
    T - the sample result type
    Enclosing interface:
    Sampling<T>

    public static final class Sampling.Result<T>
    extends Object
    This class represents the result of a sample calculation, which contains the array of calculated values and a corresponding array with expected sample values. This two arrays can then be used for calculating the error between modeled regression function and actual sample values.
    • Method Detail

      • calculated

        public T[] calculated()
        Return the the calculated result values.
        Returns:
        the the calculated result values
      • expected

        public T[] expected()
        Return the expected sample result values.
        Returns:
        the expected sample result values
      • of

        public static <T> Sampling.Result<T> of​(T[] calculated,
                                                T[] expected)
        Create a new sampling result object.
        Type Parameters:
        T - the sample type
        Parameters:
        calculated - the calculated values
        expected - the expected sample values
        Returns:
        a new sampling result object
        Throws:
        NullPointerException - if one of the arguments is null