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

About package "transform"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • None

    Description

      Classes in package "o.a.c.m.transform" might require some changes in order to conform to goals set for the next major release.

      Some observations:

      1. Exceptions done (see below)
        1. Should remove use of deprecated "MathRuntimeException"
        2. Should throw more specific "Math...Exception" instances instead of standard IAE
      2. Interface "RealTransformer" (and implementations) contain non-conformant method names (e.g. "inversetransform" instead of "inverseTransform"). Fixed in r1208293.
      3. "FastFourierTransformer":
        1. Methods "mdfft" and "verifyDataSet" take an argument of type "Object" (to allow an argument with an unspecified number of dimensions)
        2. The "RootsOfUnity" helper class could be moved to the "complex" package. Done in r1238898.
        3. For clarity, multidimensional transform should be moved to a class of its own (and I also wonder whether the "MultiDimensionalComplexMatrix" name is not misleading)
      4. "FastFourierTransformer", "FastSineTranformer" and "FastCosineTranformer" define public methods "tranform2" and "inversetransform2" but they are not part of an interface. As of r1213157, these methods have been removed, and replaced by factory methods create() and createUnitary() (FFT) or createOrthogonal() (FCT, FST).
      5. Code uses variables that start with an uppercase. Fixed, together with various formatting issues.
      6. "FastHadamardTransformer" contains illegible developer documentation (see Javadoc for protected method "fht"). Tried to improve things in r1208986, but things are still a bit obscure. Besides, the link provided is broken. Will look into that.

      Attachments

        Activity

          People

            celestin Sebastien Brisard
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: