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

stat.correlation.Covariance should allow one-column matrices

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: