ActivationStep ClassEncog Machine Learning Framework for .Net
The step activation function is a very simple activation function. It is the activation function that was used by the original perceptron. Using the default parameters it will return 1 if the input is 0 or greater. Otherwise it will return 1. The center, low and high properties allow you to define how this activation function works. If the input is equal to center or higher the high property value will be returned, otherwise the low property will be returned. This activation function does not have a derivative, and can not be used with propagation training, or any other training that requires a derivative.
Inheritance Hierarchy

System Object
  Encog.Engine.Network.Activation ActivationStep

Namespace: Encog.Engine.Network.Activation
Assembly: encog-core-cs (in encog-core-cs.dll) Version: (

public class ActivationStep : IActivationFunction, 

The ActivationStep type exposes the following members.


Public methodActivationStep 
Create a basic step activation with low=0, center=0, high=1.
Public methodActivationStep(Double, Double, Double)
Construct a step activation function.

Public methodActivationFunction
Implements the activation function. The array is modified according to the activation function being used. See the class description for more specific information on this type of activation function.
Public methodClone
Clone the object.
Public methodDerivativeFunction
Calculate the derivative. For performance reasons two numbers are provided. First, the value "b" is simply the number that we would like to calculate the derivative of. Second, the value "a", which is the value returned by the activation function, when presented with "b". We use two values because some of the most common activation functions make use of the result of the activation function. It is bad for performance to calculate this value twice. Yet, not all derivatives are calculated this way. By providing both the value before the activation function is applied ("b"), and after the activation function is applied("a"), the class can be constructed to use whichever value will be the most efficient.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Public fieldStatic memberParamStepCenter
The step center parameter.
Public fieldStatic memberParamStepHigh
The step high parameter.
Public fieldStatic memberParamStepLow
The step low parameter.

Public propertyCenter
Set the center of this function.
Public propertyHasDerivative
Public propertyHigh
Set the high of this function.
Public propertyLow
Set the low of this function.
Public propertyParamNames
Public propertyParams
See Also