Enum ArtificialNeuralNetwork.Activator

    • Field Detail

      • myFunction

        private final java.util.function.Consumer<PhysicalStore<java.lang.Double>> myFunction
      • mySingleFolded

        private final boolean mySingleFolded
    • Constructor Detail

      • Activator

        private Activator​(java.util.function.Consumer<PhysicalStore<java.lang.Double>> function,
                          PrimitiveFunction.Unary derivativeInTermsOfOutput,
                          boolean singleFolded)
    • Method Detail

      • values

        public static ArtificialNeuralNetwork.Activator[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ArtificialNeuralNetwork.Activator c : ArtificialNeuralNetwork.Activator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ArtificialNeuralNetwork.Activator valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • activate

        void activate​(PhysicalStore<java.lang.Double> output)
      • activate

        void activate​(PhysicalStore<java.lang.Double> output,
                      double probabilityToKeep)
      • isSingleFolded

        boolean isSingleFolded()