fsml_lin Module

Module for linear algebra procedures. Uses LAPACK routines (through stdlib).


Uses

  • module~~fsml_lin~~UsesGraph module~fsml_lin fsml_lin module~fsml_err fsml_err module~fsml_lin->module~fsml_err module~fsml_ini fsml_ini module~fsml_lin->module~fsml_ini module~fsml_sts fsml_sts module~fsml_lin->module~fsml_sts module~fsml_utl fsml_utl module~fsml_lin->module~fsml_utl module~fsml_err->module~fsml_ini module~fsml_err->module~fsml_utl module~fsml_con fsml_con module~fsml_err->module~fsml_con iso_fortran_env iso_fortran_env module~fsml_ini->iso_fortran_env stdlib_linalg stdlib_linalg module~fsml_ini->stdlib_linalg module~fsml_sts->module~fsml_err module~fsml_sts->module~fsml_ini module~fsml_sts->module~fsml_con module~fsml_utl->module~fsml_ini module~fsml_con->module~fsml_ini

Used by

  • module~~fsml_lin~~UsedByGraph module~fsml_lin fsml_lin module~fsml fsml module~fsml->module~fsml_lin

Subroutines

public subroutine s_lin_pca(x, m, n, opt, wt, pc, eof, ev, eof_scaled, r2)

Empirical Orthogonal Function (EOF) analysis / Principal Component Analysis (PCA)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x(m,n)

input data

integer(kind=i4), intent(in) :: m

number of rows

integer(kind=i4), intent(in) :: n

number of columns

integer(kind=i4), intent(in), optional :: opt

0 = covariance, 1 = correlation

real(kind=wp), intent(in), optional :: wt(n)

optional weights (default = 1.0/n)

real(kind=wp), intent(out) :: pc(m,n)

principal components

real(kind=wp), intent(out) :: eof(n,n)

EOFs/eigenvectors (unweighted)

real(kind=wp), intent(out) :: ev(n)

eigenvalues

real(kind=wp), intent(out), optional :: eof_scaled(n,n)

EOFs/eigenvectors scaled for plotting

real(kind=wp), intent(out), optional :: r2(n)

explained variance (%)