fips.CovarianceMatrix#

class fips.CovarianceMatrix(data, name=None, index=None, columns=None, dtype=None, copy=None, sparse=False)[source]#

Bases: Matrix

Represents a symmetric Covariance Matrix.

Covariance matrices are used to represent error covariances in the inversion framework. They can be constructed from variances and correlation matrices.

Attributes

variances

Returns the variances (diagonal elements) of the covariance matrix.

Methods

force_symmetry([keep])

Force the matrix to be perfectly symmetric by copying one triangle to the other.

Inherited

From Matrix: blocks, data, scale, to_xarray

From Structure2D: columns, is_sparse, name, to_dense, to_frame, to_sparse, values

From Structure: copy, reindex, round_index, shape, to_numpy, xs

From Pickleable: from_file, to_file