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

Principal component transformation

Syntax

[Ptrans] = trapca(P,TransMat)

Description

trapca preprocesses the network input training set by applying the principal component transformation that was previously computed by prepca. This function needs to be used when a network has been trained using data normalized by prepca. All subsequent inputs to the network need to be transformed using the same normalization.

trapca(P,TransMat) takes these inputs,

and returns,

Examples

Here is the code to perform a principal component analysis and retain only those components which contribute more than 2 percent to the variance in the data set. prestd is called first to create zero mean data, which are needed for prepca.

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

prestd, premnmx, prepca, trastd, tramnmx



[ Previous | Help Desk | Next ]