Normalized row weight initialization function
W = randnr(S,PR)
randnr is a weight initialization function.
W = randnr(S,PR) takes two inputs,
Number of rows (neurons)
and returns an
matrix with normalized rows.
You can also call this in the form
A matrix of three normalized four-element rows is generated:
M = randnr(3,4) M = 0.9713 0.0800 -0.1838 -0.1282 0.8228 0.0338 0.1797 0.5381 -0.3042 -0.5725 0.5436 0.5331