ActivationRamp ClassEncog Machine Learning Framework for .Net
A ramp activation function. This function has a high and low threshold. If the high threshold is exceeded a fixed value is returned. Likewise, if the low value is exceeded another fixed value is returned.
Inheritance Hierarchy

System Object
  Encog.Engine.Network.Activation ActivationRamp

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

public class ActivationRamp : IActivationFunction, 

The ActivationRamp type exposes the following members.


Public methodActivationRamp 
Default constructor.
Public methodActivationRamp(Double, Double, Double, Double)
Construct a ramp 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 memberParamRampHigh
The ramp high parameter.
Public fieldStatic memberParamRampHighThreshold
The ramp high threshold parameter.
Public fieldStatic memberParamRampLow
The ramp low parameter.
Public fieldStatic memberParamRampLowThreshold
The ramp low threshold parameter.

Public propertyHasDerivative
True, as this function does have a derivative.
Public propertyHigh
The high value.
Public propertyLow
The low value.
Public propertyParamNames
Public propertyParams
Public propertyThresholdHigh
Set the threshold high.
Public propertyThresholdLow
The threshold low.
See Also