[
https://issues.apache.org/jira/browse/MAHOUT-1599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14078222#comment-14078222
]
Felix Schüler commented on MAHOUT-1599:
---------------------------------------
That was just how I wanted to implement the rand-operator (map instead of for)
but couldn't find a good way to so map on vectors and matrices. Seems like the
JavaCollections are doing what I was looking for.
In my opinion, a rand-operator is nice to have, just like eye is nice to have.
But I guess that's just personal preference...
> Add rand() operator to math-scala
> ---------------------------------
>
> Key: MAHOUT-1599
> URL: https://issues.apache.org/jira/browse/MAHOUT-1599
> Project: Mahout
> Issue Type: Improvement
> Components: Math
> Affects Versions: 0.9
> Reporter: Felix Schüler
> Priority: Trivial
> Labels: dsl, math, operator, random, scala
> Attachments: MAHOUT-1599.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)