You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Dmitriy Lyubimov (JIRA)" <ji...@apache.org> on 2015/06/18 22:35:00 UTC

[jira] [Resolved] (MAHOUT-1599) Add rand() operator to math-scala

     [ https://issues.apache.org/jira/browse/MAHOUT-1599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitriy Lyubimov resolved MAHOUT-1599.
--------------------------------------
    Resolution: Not A Problem

> 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
>             Fix For: 0.11.0
>
>         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.3.4#6332)