<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
                   "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<!-- lifted from troff+man by doclifter -->
<refentry id='eva_evt1'>
<!--  @(#)eva_evt.1 2001/04/02 NIST -->
<!--  I Image Group -->
<!--  G. T. Candela &amp; Craig I. Watson -->

<refmeta>
<refentrytitle>EVA_EVT</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class='date'>02 April 2001</refmiscinfo>
<refmiscinfo class='source'>NIST</refmiscinfo>
<refmiscinfo class='manual'>NFIS Reference Manual</refmiscinfo>
</refmeta>
<refnamediv id='name'>
<refname>eva_evt</refname>
<refpurpose>finds a desired number of eigenvalues and eigenvectors.</refpurpose>
</refnamediv>
<!-- body begins here -->
<refsynopsisdiv id='synopsis'>
<cmdsynopsis>
  <command>eva_evt</command>    
    <arg choice='plain'><replaceable>&lt;covfile_in&gt;&lt;num_eva_evt_wanted&gt;&lt;evafile&gt;&lt;eva_desc&gt;&lt;evtfile&gt;&lt;evt_desc&gt;&lt;ascii_outfiles&gt;</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>


<refsect1 id='description'><title>DESCRIPTION</title>
<para><command>eva_evt</command>
finds a desired number of eigenvalues, and corresponding eigenvectors,
of a covariance matrix (or really, of any symmetric positive definite real
matrix). Uses CLAPACK routines, which were originally in Fortran but
were converted into C using f2c.</para>
</refsect1>

<refsect1 id='arguments'><title>ARGUMENTS</title>
<variablelist remap='TP'>
  <varlistentry>
  <term><emphasis remap='I'>&lt;covfile_in&gt;</emphasis></term>
  <listitem>
<para>The covariance matrix (really, symmetric positive definite real
matrix) some of whose eigenvalues and corresponding eivenvectors are
to be found.  Must be a PCASYS "covariance" file. (Usually the output
of <emphasis remap='B'>meancov</emphasis>.)</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><emphasis remap='I'>&lt;num_eva_evt_wanted&gt;</emphasis></term>
  <listitem>
<para>Specifies how many eigenvalues and eigenvectors to return for
the given covariance matrix.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><emphasis remap='I'>&lt;evafile&gt;</emphasis></term>
  <listitem>
<para>File to be written containing the eigenvalues that are found; will be
a PCASYS "matrix" file, with first dimension equal to 1 and second
dimension equal to the number of eigenvalues found.  The eigenvalues
will be stored in decreasing order.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><emphasis remap='I'>&lt;eva_desc&gt;</emphasis></term>
  <listitem>
<para>A string to be written into the eigenvalues output file as its
description string.  This string can be of any length, but must not
contain embedded newline characters.  If it contains spaces, tabs, or
shell metacharacters that are not to be expanded, then it should be
quoted.  To leave the description empty, use '' (two single quotes,
i.e.  single-quoted empty string).  To let eva_evt make a description
(stating that this is an eigenvalues file made by eva_evt, and showing the
covariance file and number of eigenvalues), use - (hyphen).</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><emphasis remap='I'>&lt;evtfile&gt;</emphasis></term>
  <listitem>
<para>File to be written containing the eigenvectors that are found; will
be a PCASYS "matrix" file.  The i'th row of this matrix will be the
eigenvector corresponding to the i'th entry in the eigenvalues output
file.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><emphasis remap='I'>&lt;evt_desc&gt;</emphasis></term>
  <listitem>
<para>Description string for eigenvectors output file, or - to let eva_evt make
the description. As per the <emphasis remap='I'>eva_desc</emphasis>.</para>
  </listitem>
  </varlistentry>
  <varlistentry>
  <term><emphasis remap='I'>&lt;ascii_outfiles&gt;</emphasis></term>
  <listitem>
<para>If y, makes ascii output files; if n, binary.  Binary is recommended,
unless the output files must be portable across different byte orders
or floating-point formats.</para>
  </listitem>
  </varlistentry>
</variablelist>
</refsect1>

<refsect1 id='examples'><title>EXAMPLE(S)</title>
<para>From <emphasis remap='I'>test/pcasys/execs/eva_evt/eva_evt.src</emphasis>:</para>

<!-- .RS -->
<para><emphasis remap='B'>% eva_evt ../meancov/fv1-9.cov 128 fv1-9.eva - fv1-9.evt - n</emphasis>
<!-- .br -->
Computes the eigen-values and eigen-vectors for fv1-9.cov and
sorts in decreasing order, then returns the top 128 from that list.</para>
</refsect1>

<refsect1 id='see_also'><title>SEE ALSO</title>
<para>asc2bin (1A), bin2asc (1A), lintran (1A), meancov (1A)</para>

</refsect1>

<refsect1 id='author'><title>AUTHOR</title>
<para>NIST/ITL/DIV894/Image Group</para>
</refsect1>
</refentry>

