**svd_basis_weight_test**,
a FORTRAN90 code which
calls svd_basis_weight(), which
applies the
singular value decomposition ("SVD") to a set of weighted data vectors,
to extract the leading "modes" of the data.

The computer code and data files described and made available on this web page are distributed under the MIT license

svd_basis_weight, a FORTRAN90 code which is similar to SVD_basis, but which allows the user to assign weights to each data vector.

- svd_basis_weight_test.sh, runs all the tests.
- svd_basis_weight_test.txt, the output file.

The user's input:

- input.txt, five lines of input that define a run.

The input data consists of 5 files:

- data01.txt, input data file #1.
- data02.txt, input data file #2.
- data03.txt, input data file #3.
- data04.txt, input data file #4.
- data05.txt, input data file #5.

There are two options for the weight files:

- weight_even.txt, even weights.
- weight_uneven.txt, weights of 0, 5, 1, 0.1, 0.2.

**EXAMPLE 1** uses no averaging and even weights. The output data
consists of 4 files, all of which are SVD basis vectors:

- ex01_input.txt, the input commands.
- ex01.txt, the output file.
- ex01_svd_001.txt, output SVD file #1.
- ex01_svd_002.txt, output SVD file #2.
- ex01_svd_003.txt, output SVD file #3.
- ex01_svd_004.txt, output SVD file #4.

**EXAMPLE 2** uses no averaging and uneven weights. The output data
consists of 4 files, all of which are SVD basis vectors:

- ex02_input.txt, the input commands.
- ex02.txt, the output file.
- ex02_svd_001.txt, output SVD file #1.
- ex02_svd_002.txt, output SVD file #2.
- ex02_svd_003.txt, output SVD file #3.
- ex02_svd_004.txt, output SVD file #4.

**EXAMPLE 3** uses averaging and even weights. The output data
consists of 5 files, all of which are SVD basis vectors:

- ex03_input.txt, the input commands.
- ex03.txt, the output file.
- ex03_svd_000.txt, output average vector.
- ex03_svd_001.txt, output SVD file #1.
- ex03_svd_002.txt, output SVD file #2.
- ex03_svd_003.txt, output SVD file #3.
- ex03_svd_004.txt, output SVD file #4.