pcas

Functions

int main(int argc, char *argv[])

pcas [ option ] evfile [ infile ]

  • -l int

    • length of vector (1L)

  • -m int

    • order of vector (0M)

  • -n int

    • number of principal components (1NL)

  • evfile str

    • double-type mean vector and eigenvectors

  • infile str

    • double-type vector sequence

  • stdout

    • double-type principal component score

The input of this command is the M-th order vectors:

x(0),x(1),x(0),,
the mean vector m, and N eigenvectors
A=[e(0)e(1)e(N1)].
The pricipal component score of x(t) is calculated as
z(t)=AT(x(t)m).

In the below example, the principal component scores of data.d are calculated using the mean vector and the eigen vectors in eigvec.dat.

pcas -l 3 -n 2 eigvec.dat < data.d > score.dat
Parameters:
  • argc[in] Number of arguments.

  • argv[in] Argument vector.

Returns:

0 on success, 1 on failure.

See also

pca