Skip to contents

step(w^T x + b) with step(0) = 1. A vector x is one row.

Usage

morie_geron_tlu(x, w, b = 0)

Arguments

x

Vector or (n, d) matrix.

w

Weights.

b

Bias.

Value

List with y (0/1), z, w, b, estimate, n.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_tlu(V, V)
#> $y
#> [1] 1
#> 
#> $z
#> [1] 204
#> 
#> $w
#> [1] 1 2 3 4 5 6 7 8
#> 
#> $b
#> [1] 0
#> 
#> $estimate
#> [1] 1
#> 
#> $n
#> [1] 1
#> 
#> $method
#> [1] "Threshold logic unit with Heaviside step (step(0) = 1)"
#>