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

Add rand() operator to math-scala

    XMLWordPrintableJSON

Details

    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

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

            Dates

              Created:
              Updated:
              Resolved: