Neural Network Toolbox Previous page   Next Page
netprod

Product net input function

Syntax

N = netprod(Z1,Z2,...,Zn)

df = netprod('deriv')

Description

netprod is a net input function. Net input functions calculate a layer's net input by combining its weighted inputs and biases.

netprod(Z1,Z2,...,Zn) takes,

and returns an element-wise sum of Zi's.

netprod('deriv') returns netprod's derivative function.

Examples

Here netprod combines two sets of weighted input vectors (which we have defined ourselves).

Here netprod combines the same weighted inputs with a bias vector. Because Z1 and Z2 each contain three concurrent vectors, three concurrent copies of B must be created with concur so that all sizes match up.

Network Use

You can create a standard network that uses netprod by calling newpnn or newgrnn.

To change a network so that a layer uses netprod, set net.layers{i}.netInputFcn to 'netprod'.

In either case, call sim to simulate the network with netprod. See newpnn or newgrnn for simulation examples.

See Also

sim, dnetprod, netsum, concur


Previous page  negdist netsum Next page

© 1994-2005 The MathWorks, Inc.