Neural Network Toolbox Previous page   Next Page
tramnmx

Transform data using a precalculated minimum and maximum value

Syntax

[PN] = tramnmx(P,minp,maxp)

Description

tramnmx transforms the network input set using minimum and maximum values that were previously computed by premnmx. This function needs to be used when a network has been trained using data normalized by premnmx. All subsequent inputs to the network need to be transformed using the same normalization.

tramnmx(P,minp, maxp)takes these inputs

and returns,

Examples

Here is the code to normalize a given data set, so that the inputs and targets will fall in the range [-1,1], using premnmx, and also code to train a network with the normalized data.

If we then receive new inputs to apply to the trained network, we will use tramnmx to transform them first. Then the transformed inputs can be used to simulate the previously trained network. The network output must also be unnormalized using postmnmx.

Algorithm

See Also

premnmx, prestd, prepca, trastd, trapca


Previous page  trainscg trapca Next page

© 1994-2005 The MathWorks, Inc.