Neural Network Toolbox
  Go to function:
    Search    Help Desk 
netprod    Examples   See Also

Product net input function

Syntax

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

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 | Help Desk | Next ]