Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1599

Add rand() operator to math-scala

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Not A Problem
    • Affects Version/s: 0.9
    • Fix Version/s: 0.11.0
    • Component/s: Math

      Description

      I was looking at the scala-math operators and missed a rand(m, n) operator that generates a m x n matrix filled with random numbers.

      I wanted random numbers from a uniform distribution over a specific interval so I implemented a simple uniform random number generator.

      the rand(m, n, r) function takes any AbstractSamplerFunction and fills the matrix entries with the numbers generated by its sample() method.

        Attachments

        1. MAHOUT-1599.patch
          4 kB
          Felix Schueler

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fschueler Felix Schueler
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: