pyesmda.ESMDAInversionType#
- class pyesmda.ESMDAInversionType(*values)[source]#
Inversion type for the computation of \(\mathbf{C}_{\mathrm{md}} (\mathbf{C}_{\mathrm{dd}} + \alpha \mathbf{C}_{\mathrm{d}})^{-1} (\mathbf{d} - \mathbf{Y})\).
It is a hashable string enum and can be iterated.
- Available inversion types are:
naive: direct inversion of C_DD + alpha * C_D
exact_cholesky: perform the cholesky factorization of C_DD + alpha * C_D
exact_lstq: Computes inversion using least squares. While this method can deal with rank-deficient C_D, it should not be used since it’s very slow
exact_woodbury: Rely on woodbury lemma to reformulate the problem
rescaled: rely on truncated singular value decomposition TSVD of C_DD
subspace: rely on TSVD of U with C_DD = UU^{T}
subspace_rescaled: Same as subspace but with a rescaling procedure to avoid loss of information during truncation of small singular values (see Evensen [2004])
- __init__(*args, **kwds)#
Properties
Methods
Encode the string using the codec registered for encoding.
Return a copy with all occurrences of substring old replaced by new.
Return a list of the substrings in the string, using sep as the separator string.
Return a list of the substrings in the string, using sep as the separator string.
Concatenate any number of strings.
Return a capitalized version of the string.
Return a version of the string suitable for caseless comparisons.
Return a version of the string where each word is titlecased.
Return a centered string of length width.
Return the number of non-overlapping occurrences of substring sub in string S[start:end].
Return a copy where all tab characters are expanded using spaces.
Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
Partition the string into three parts using the given separator.
Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
Return a left-justified string of length width.
Return a copy of the string converted to lowercase.
Return a copy of the string with leading whitespace removed.
Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].
Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].
Return a right-justified string of length width.
Return a copy of the string with trailing whitespace removed.
Partition the string into three parts using the given separator.
Return a list of the lines in the string, breaking at line boundaries.
Return a copy of the string with leading and trailing whitespace removed.
Convert uppercase characters to lowercase and lowercase characters to uppercase.
Replace each character in the string using the given translation table.
Return a copy of the string converted to uppercase.
Return True if the string starts with the specified prefix, False otherwise.
Return True if the string ends with the specified suffix, False otherwise.
Return a str with the given prefix string removed if present.
Return a str with the given suffix string removed if present.
Return True if all characters in the string are ASCII, False otherwise.
Return True if the string is a lowercase string, False otherwise.
Return True if the string is an uppercase string, False otherwise.
Return True if the string is a title-cased string, False otherwise.
Return True if the string is a whitespace string, False otherwise.
Return True if the string is a decimal string, False otherwise.
Return True if the string is a digit string, False otherwise.
Return True if the string is a numeric string, False otherwise.
Return True if the string is an alphabetic string, False otherwise.
Return True if the string is an alpha-numeric string, False otherwise.
Return True if the string is a valid Python identifier, False otherwise.
Return True if all characters in the string are printable, False otherwise.
Pad a numeric string with zeros on the left, to fill a field of the given width.
Return a formatted version of the string, using substitutions from args and kwargs.
Return a formatted version of the string, using substitutions from mapping.
Return a translation table usable for str.translate().
Return all enums as a list.