Nano Brain for Unity v0.1
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Neuron.Presets Class Reference

Description

The curve presets for the activation functions.

Static Public Member Functions

static AnimationCurve Linear (float weight)
 Generate a curve for the linear activation function.
 
static AnimationCurve Power (float exponent, float weight)
 Generate a curve for the power activation function.
 
static AnimationCurve Reciprocal (float weight)
 Generate a curve for the reciprocal activation function.
 
static AnimationCurve Tanh (float weight)
 Generate a curve for the tanh activation function.
 
static AnimationCurve Binary ()
 Generate a curve for the binary activation function.
 

Member Function Documentation

◆ Linear()

static AnimationCurve Linear ( float  weight)
static

Generate a curve for the linear activation function.

Parameters
weightThe maximum value for the function
Returns
The curve preset

◆ Power()

static AnimationCurve Power ( float  exponent,
float  weight 
)
static

Generate a curve for the power activation function.

Parameters
exponentThe exponent of the power function
weightThe maximum value for the function
Returns
The curve preset

◆ Reciprocal()

static AnimationCurve Reciprocal ( float  weight)
static

Generate a curve for the reciprocal activation function.

Parameters
weightThe maximum value for the function
Returns
The curve preset

◆ Tanh()

static AnimationCurve Tanh ( float  weight)
static

Generate a curve for the tanh activation function.

Parameters
weightThe maximum value for the function
Returns
The curve preset

◆ Binary()

static AnimationCurve Binary ( )
static

Generate a curve for the binary activation function.

Returns
The curve preset