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

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