Class Sampling.Result<T>

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

    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.
        the the calculated result values
      • expected

        public T[] expected()
        Return the expected sample result values.
        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
        calculated - the calculated values
        expected - the expected sample values
        a new sampling result object
        NullPointerException - if one of the arguments is null