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

Add rand() operator to math-scala

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment