Interface Sampling<T>

  • All Known Implementing Classes:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface Sampling<T>
    This interface represents a set of sample points, which can be evaluated with a given evolved program.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Sampling.Result<T>
      This class represents the result of a sample calculation, which contains the array of calculated values and a corresponding array with expected sample values.
    • Method Detail

      • eval

        Sampling.Result<Teval​(Tree<? extends Op<T>,​?> program)
        Evaluates the given program tree with its sample points. The returned result object may be null if no sample point has been added to the sampling when calling the eval method.
        program - the program to evaluate
        the evaluated sample result. May be null if the sampling is empty and contains no sample points.