Densevector.rand with another PRNG

17 views
Skip to first unread message

Andrich van Wyk

unread,
Mar 29, 2016, 5:25:45 PM3/29/16
to Scala Breeze
Hi

Is it possible to create randomized Vectors with a different PRNG?
By default it seems to be using an Apache commons Mersenne Twister. Any idea how I could use a different generator?

Kind Regards
Andrich

David Hall

unread,
Mar 29, 2016, 5:26:48 PM3/29/16
to scala-...@googlegroups.com
I'm assuming you're using DenseVector.rand or something similar. All of those methods accept an optional [[breeze.stats.distributions.Rand]] as a second argument, and it uses that random generator if provided.

--
You received this message because you are subscribed to the Google Groups "Scala Breeze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-breeze...@googlegroups.com.
To post to this group, send email to scala-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-breeze/03d11240-65bf-4bd7-b155-c4612dfe7476%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrich van Wyk

unread,
Mar 29, 2016, 6:12:19 PM3/29/16
to Scala Breeze
Thank you.

Missed it completely for some reason.
Reply all
Reply to author
Forward
0 new messages