StepFunction Class Reference

Step Function. More...

Inheritance diagram for StepFunction:

Inheritance graph
[legend]
Collaboration diagram for StepFunction:

Collaboration graph
[legend]
List of all members.

Constructors

 StepFunction (Real min=0.0f, Real max=1.0f, Real threshold=0.0f)
 StepFunction (PropertySettings &prop)
virtual ~StepFunction ()

Interface

bool setMin (const Variant &v)
Variant getMin ()
bool setMax (const Variant &v)
Variant getMax ()
bool setThreshold (const Variant &v)
Variant getThreshold ()
virtual void apply (RealVec &inputs, RealVec &outputs)
virtual void derivate (const RealVec &x, const RealVec &y, RealVec &d) const
virtual StepFunctionclone () const

Public Attributes

Real min
Real max
Real threshold

Detailed Description

Further Details coming soon ;-)

Properties
Name Type [isVector] Access mode Description Class
typename string read-only Class's type Propertized
min Real read/write function's minimun value this
max Real read/write function's maximun value this
threshold Real read/write X position of step this


Constructor & Destructor Documentation

StepFunction ( Real  min = 0.0f,
Real  max = 1.0f,
Real  threshold = 0.0f 
)

Construct a step updater

StepFunction ( PropertySettings prop  ) 

Construct

virtual ~StepFunction (  )  [inline, virtual]

Destructor


Member Function Documentation

bool setMin ( const Variant v  ) 

Set the minimum value of StepFunction

Variant getMin (  ) 

Return the minimum value of StepFunction

bool setMax ( const Variant v  ) 

Set the maximum value of StepFunction

Variant getMax (  ) 

Return the maximum value of StepFunction

bool setThreshold ( const Variant v  ) 

Set the threshold of StepFunction

Variant getThreshold (  ) 

Return the threshold of StepFunction

virtual void apply ( RealVec inputs,
RealVec outputs 
) [virtual]

Implement the updating method

Reimplemented from OutputFunction.

virtual void derivate ( const RealVec x,
const RealVec y,
RealVec d 
) const [virtual]

Using the derivate of the sigmoid function!!!

Reimplemented from DerivableOutputFunction.

virtual StepFunction* clone (  )  const [virtual]

Clone this object

Reimplemented from OutputFunction.


Member Data Documentation

Real min

Minimum value

Real max

Maximum value

Real threshold

Threshold


The documentation for this class was generated from the following file:
BerliOS Developer Logo Valid XHTML 1.0 Transitional Valid CSS!