Main Content
midpoint
Midpoint weight initialization function
Syntax
W = midpoint(S,PR)
Description
midpoint
is a weight initialization function that sets weight (row)
vectors to the center of the input ranges.
W = midpoint(S,PR)
takes two arguments,
S | Number of rows (neurons) |
PR |
|
and returns an S
-by-R
matrix with rows set to
(Pmin+Pmax)'/2
.
Examples
Here initial weight values are calculated for a five-neuron layer with input elements
ranging over [0 1]
and [-2 2]
.
W = midpoint(5,[0 1; -2 2])
Version History
Introduced before R2006a