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

Mathematical error in comment for FastCosineTransformer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      The formula in the comments for transform() method of FastCosineTransformer has the form:

      F_n = (1/2) [f_0 + (-1)^n f_N] + \Sum_

      {k=0}

      ^

      {N-1} f_k \cos(\pi nk/N)

      This is incorrect and should be

      F_n = (1/2) [f_0 + (-1)^n f_N] + \Sum_{k=1}^{N-1}

      f_k \cos(\pi nk/N)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rwerp Roman Werpachowski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: