Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-939

stat.correlation.Covariance should allow one-column matrices

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2
    • None
    • None

    Description

      Currently (rev 1453206), passing 1-by-M matrix to the Covariance constructor throws IllegalArgumentException. For consistency, the Covariance class should work for a single-column matrix (i.e., for a N-dimensional random variable with N=1) and it should return 1-by-1 covariance matrix with the variable's variance in its only element.

      Attachments

        1. covariance.patch
          9 kB
          Piotr Wydrych

        Activity

          People

            Unassigned Unassigned
            wydrych Piotr Wydrych
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: