Interface Covariances


public interface Covariances
Some comemon methods for the various covariance implementations.
Author:
Joseph D. Ramsey
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    covariance(int i, int j)
    Returns the covariance at (i, j).
    double[][]
    Returns the underlying covariance matrix.
    double[][]
    getSubMatrix(int[] rows, int[] cols)
    Returns a submatrix of the covariance matrix for the given rows and columns.
    void
    setCovariance(int i, int j, double v)
    Sets the covariance at (i, j) to a particular value.
    int
    Returns the dimensiom of the matrix.
  • Field Details

  • Method Details

    • covariance

      double covariance(int i, int j)
      Returns the covariance at (i, j).
    • size

      int size()
      Returns the dimensiom of the matrix.
    • setCovariance

      void setCovariance(int i, int j, double v)
      Sets the covariance at (i, j) to a particular value. Not effective for implemetations that calculate covariances from data on the fly.
    • getMatrix

      double[][] getMatrix()
      Returns the underlying covariance matrix.
    • getSubMatrix

      double[][] getSubMatrix(int[] rows, int[] cols)
      Returns a submatrix of the covariance matrix for the given rows and columns.