TLogisticEx


This template implements extended logistic(sigmoid) activation function used in neural networks.

You can find more information in comments below. Overrided methods can be found in corresponding base class.

// Transformed(shifted and scaled) sigmoid. Return in range [bias..scale + bias] 
template<class FLOAT>
class TLogisticEx : public IActivator<FLOAT>
{
public:
    TLogisticEx(const FLOAT gain, const FLOAT scale, const FLOAT bias);

    FLOAT Calculate(const FLOAT value) override;
    FLOAT Derivative(const FLOAT value) override;
};
Namespace: nitisa::ai::activators
Include: Nitisa/Modules/AI/Activators.h