Class AbstractFunctionEuclideanSpace<P,​T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.function.Supplier<java.util.function.BiConsumer<P,​? super T>> functionSupplier  
      protected int n  
      protected java.util.function.Supplier<T> typeSupplier  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractFunctionEuclideanSpace​(int n, java.util.function.BiConsumer<P,​? super T> function, java.util.function.Supplier<T> typeSupplier)
      Simplified constructor if the same function is stateless and can be used concurrently.
      AbstractFunctionEuclideanSpace​(int n, java.util.function.Supplier<java.util.function.BiConsumer<P,​? super T>> functionSupplier, java.util.function.Supplier<T> typeSupplier)
      Constructor for stateful functions that cannot be used concurrently.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int numDimensions()
      Gets the space's number of dimensions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • n

        protected final int n
      • functionSupplier

        protected final java.util.function.Supplier<java.util.function.BiConsumer<P,​? super T>> functionSupplier
      • typeSupplier

        protected final java.util.function.Supplier<T> typeSupplier
    • Constructor Detail

      • AbstractFunctionEuclideanSpace

        public AbstractFunctionEuclideanSpace​(int n,
                                              java.util.function.Supplier<java.util.function.BiConsumer<P,​? super T>> functionSupplier,
                                              java.util.function.Supplier<T> typeSupplier)
        Constructor for stateful functions that cannot be used concurrently.
        Parameters:
        n -
        functionSupplier -
        typeSupplier -
      • AbstractFunctionEuclideanSpace

        public AbstractFunctionEuclideanSpace​(int n,
                                              java.util.function.BiConsumer<P,​? super T> function,
                                              java.util.function.Supplier<T> typeSupplier)
        Simplified constructor if the same function is stateless and can be used concurrently.
        Parameters:
        n -
        function -
        typeSupplier -