Inheritance diagram for LinearComboFunction:


Constructors | |
| LinearComboFunction (Real w1, const OutputFunction &f, Real w2, const OutputFunction &g) | |
| LinearComboFunction (PropertySettings &prop) | |
| virtual | ~LinearComboFunction () |
Interface | |
| bool | setFirstFunction (const Variant &v) |
| Variant | getFirstFunction () |
| bool | setFirstWeight (const Variant &v) |
| Variant | getFirstWeight () |
| bool | setSecondFunction (const Variant &v) |
| Variant | getSecondFunction () |
| bool | setSecondWeight (const Variant &v) |
| Variant | getSecondWeight () |
| virtual void | apply (RealVec &inputs, RealVec &outputs) |
| virtual LinearComboFunction * | clone () const |
| virtual void | setCluster (Cluster *) |
| Properties | ||||
| Name | Type [isVector] | Access mode | Description | Class |
|---|---|---|---|---|
| typename | string | read-only | Class's type | Propertized |
| first | OutputFunction | read/write | first function | this |
| second | OutputFunction | read/write | second function | this |
| w1 | Real | read/write | first weight | this |
| w2 | Real | read/write | second weight | this |
| LinearComboFunction | ( | Real | w1, | |
| const OutputFunction & | f, | |||
| Real | w2, | |||
| const OutputFunction & | g | |||
| ) |
Construct a Linear Combination of two functions
| LinearComboFunction | ( | PropertySettings & | prop | ) |
Construct from PropertySettings
| virtual ~LinearComboFunction | ( | ) | [virtual] |
Destructor
| bool setFirstFunction | ( | const Variant & | v | ) |
Set the first function of LinearComboFunction
| Variant getFirstFunction | ( | ) |
Return the first function of LinearComboFunction
| bool setFirstWeight | ( | const Variant & | v | ) |
Set the first weight of LinearComboFunction
| Variant getFirstWeight | ( | ) |
Return the first weight of LinearComboFunction
| bool setSecondFunction | ( | const Variant & | v | ) |
Set the second function of CompositeFunction
| Variant getSecondFunction | ( | ) |
Return the second function of CompositeFunction
| bool setSecondWeight | ( | const Variant & | v | ) |
Set the second weight of LinearComboFunction
| Variant getSecondWeight | ( | ) |
Return the second weight of LinearComboFunction
Implement the updating method
it computes: y(t) <- w1*first(input,output) + w2*second(input,outputs)
Reimplemented from OutputFunction.
| virtual LinearComboFunction* clone | ( | ) | const [virtual] |
Clone this object
Reimplemented from OutputFunction.
| virtual void setCluster | ( | Cluster * | ) | [virtual] |
recursive call setCluster on first and second function setted
Reimplemented from OutputFunction.