svd_snowfall_test


svd_snowfall_test, a C++ code which calls svd_snowfall(), which demonstrates the use of the Singular Value Decomposition (SVD) to analyze a set of historical snowfall data, with plots created by GNUPLOT.

Licensing:

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

Related Data and Programs:

svd_snowfall, a C++ code which reads a file containing historical snowfall data and analyzes the data with the Singular Value Decomposition (SVD), and plots created by gnuplot.

Source Code:

The snowfall data itself must be read into the program from a file:

The second test function writes "command" and "data" files that can be used by gnuplot to create plots.

The third test function writes "command" and "data" files that can be used by gnuplot to create plots.

The fourth test function writes "command" and "data" files that can be used by gnuplot to create plots of the first 6 U modes, which form a basis for average snowfall as a function of the month.

The fifth test function writes "command" and "data" files that can be used by gnuplot to create plots of the first 6 V modes, which form a basis for total yearly snowfall behavior as a function of the year.


Last revised on 20 April 2020.