<< ann_gencluster Computation functions ann_logsig_activ >>

NeuralNet >> Computation functions > ann_hardlim_activ

ann_hardlim_activ

Hardlimit activation function

Calling Sequence

y = ann_hardlim_activ(x)

Parameters

x :

Input vector

y :

Output vector

Description

This is the hardlimit activation function, in which y = 0 for x < 0 and y = 1 for x >= 0

Examples

x = [-1:0.05:1];
y = ann_hardlim_activ(x);
plot(x,y,'.');

See also

Authors


Report an issue
<< ann_gencluster Computation functions ann_logsig_activ >>