Neural Network Toolbox Previous page   Next Page
trastd

Preprocess data using a precalculated mean and standard deviation

Syntax

[PN] = trastd(P,meanp,stdp)

Description

trastd preprocesses the network training set using the mean and standard deviation that were previously computed by prestd. This function needs to be used when a network has been trained using data normalized by prestd. All subsequent inputs to the network need to be transformed using the same normalization.

trastd(P,T) takes these inputs,

and returns,

Examples

Here is the code to normalize a given data set so that the inputs and targets will have means of zero and standard deviations of 1.

If we then receive new inputs to apply to the trained network, we will use trastd 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 poststd.

Algorithm

See Also

premnmx, prepca, prestd, trapca, tramnmx


Previous page  trapca tribas Next page

© 1994-2005 The MathWorks, Inc.