Inheritance diagram for StepFunction:


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 StepFunction * | clone () const |
Public Attributes | |
| Real | min |
| Real | max |
| Real | threshold |
| 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 |
| 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
| 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
Implement the updating method
Reimplemented from OutputFunction.
Using the derivate of the sigmoid function!!!
Reimplemented from DerivableOutputFunction.
| virtual StepFunction* clone | ( | ) | const [virtual] |
Clone this object
Reimplemented from OutputFunction.