From the hard binary step to smooth sigmoids — an interactive calculator for every standard transfer function, plus the classic AND/OR sigmoid network.
Quick Recap — The Neuron Pipeline
Every artificial neuron follows the same three-stage pipeline: weighted summation → activation function → output.
Neuron K PIPELINE
u_k = Σⱼ xⱼ w_kj → v_k = u_k + b_k → y_k = f(v_k)
Where w_kj is the connection weight from neuron j to neuron k, b_k is the bias, and f(·) is the activation (transfer) function — the subject of this module.
📌 For a single-input, single-output neuron in the simplified form: a = f(w·p + b), where p is the input, w the weight, b the bias.
DIAGRAM — MULTI-INPUT NEURON K
Standard Activation Functions
The complete catalog of classic transfer functions f(sum_k), each with its defining equation.
Table 2.3 — Standard & Common Activation Functions REFERENCE
Function
Equation
Identity (purelin)
f(sum_k) = sum_k
Binary step
1 if sum_k ≥ θ_k, else 0
Binary sigmoid (logsig)
1 / (1 + exp(−s·sum_k))
Bipolar sigmoid (tansig)
(1−exp(−s·sum_k)) / (1+exp(−s·sum_k))
Hard limit (hardlim)
1 if sum_k ≥ 0, else 0
Symmetric hard limit (hardlims)
1 / sum_k / 0 for >1 / [0,1] / <0
Saturating linear (satlin)
1 if sum_k ≥ 0, else −1
Symmetric sat. linear (satlins)
1 / sum_k / −1 for >1 / [−1,1] / <−1
The Logistic (Sigmoid) Function Family S-CURVE
The slope parameter s controls steepness: s=0 gives a flat line at 0.5, while larger s pushes the curve toward a hard step. This is why the sigmoid is often called a "smoothed" binary step function — it enables gradual weight updates, unlike the discontinuous step function.
LOGISTIC ACTIVATION FUNCTION FOR VARYING SLOPE s
Interactive Activation Calculator
Enter weights, inputs, and a bias — pick a transfer function and watch sum_k and f(sum_k) compute live, exactly like the handbook's worked problems.
Neuron Configuration LIVE
COMPUTATION
FUNCTION SHAPE (sum_k from −10 to 10)
Worked Problems (from lecture notes)
Try each one in the Interactive Calculator tab to reproduce these exact answers.
Q1 — Single Input, Bipolar Sigmoid Q1
A single-input, single-output neuron has weight = 5 and bias = −3. What is sum_k for input 1? What is the output using bipolar sigmoid with slope s=0.5?
Solving AND / OR with a 2-Input, 1-Output Sigmoid Neuron
Unlike the equal-weight MCP neuron, a sigmoid neuron uses large signed weights and a bias to push sum_k far into the saturated region — approximating a hard decision boundary.
Simplified 2-Input Neuron with Bias DIAGRAM
SIMPLIFIED FORM — x₀ (BIAS) + x₁, x₂
AND Network w₀=−30, w₁=w₂=20
h_AND(x) = f(−30 + 20x₁ + 20x₂), f = sigmoid
x₁
x₂
sum_k
h_AND(x)
0
0
−30
≈ 0
0
1
−10
≈ 0
1
0
−10
≈ 0
1
1
10
≈ 1
OR Network w₀=−10, w₁=w₂=20
h_OR(x) = f(−10 + 20x₁ + 20x₂), f = sigmoid
x₁
x₂
sum_k
h_OR(x)
0
0
−10
≈ 0
0
1
10
≈ 1
1
0
10
≈ 1
1
1
30
≈ 1
📌 Try these exact weights in the Interactive Calculator (weights: 20,20 · bias: −30 or −10 · function: Binary Sigmoid) to reproduce the ≈0 / ≈1 outputs.