Hi, Will!
Answers in line.
Cheers,
Craig
> On Apr 8, 2018, at 11:33 AM, William Schmidt
> wrote:
>
> Craig,
>
> Thank you, it works but first I had to pick those method calls apart to see
> what each is doing and rtfm about sever in PDL::Core.
>
> So, I am left with a set of questions bes
Noting there is also the module PDL::GSL::RNG;
which has a lot of stuff from GSL
> On 7 Apr 2018, at 10:58 am, Craig DeForest wrote:
>
> Welcome, William!
>
> You are probably looking for “random()”, which has the same syntax as
> “zeroes()” but returns a vector of pseudorandom values on [0,1)
Craig,
Just discovered PDL::NiceSlice which explains that slicing *$vec->(...);*
syntax I asked about.
Will
On Sun, Apr 8, 2018 at 12:33 PM, William Schmidt <
t.william.schm...@gmail.com> wrote:
> Craig,
>
> Thank you, it works but first I had to pick those method calls apart to
> see what ea
Hi William,
Yes, that's my feeling as well. I'm working with PDL and recently with
PDL::CCS for my AI::MXNet module for a year now and still feel very much as
a beginner. There's just so much in there.
One curious example. I needed to shuffle pdl via last dimension for my
iterator (batch dimension)
Sergey,
Much obliged. Very good suggestion. Math::Random and Math::Random::Discrete
have very rich sets of methods, and quite intuitive to use. Pure PDL tools
may be overkill for me since at this point my work only uses 1-dimensional
vectors. If or when I move up to multivariate sets then I think
Craig,
Thank you, it works but first I had to pick those method calls apart to see
what each is doing and rtfm about *sever* in PDL::Core.
So, I am left with a set of questions best depicted with some examples. As
I understand the ::Core pod, that random call and floor are creating a
virtual pidd
Hi Will,
I don't know solve the task via PDL, but in the past I used this
http://search.cpan.org/~nwellnhof/Math-Random-Discrete-1.01/lib/Math/Random/Discrete.pm#rand
to get a random weighed sample.
Thanks.
On Fri, Apr 6, 2018, 16:16 William Schmidt
wrote:
> Hello Piddlers,
>
> I am moving from
Welcome, William!
You are probably looking for “random()”, which has the same syntax as
“zeroes()” but returns a vector of pseudorandom values on [0,1).
To make a vector of a million of those, use “$a = random(1e6)”.
To make random integers based on a histogram that you already have in-hand, a