On Aug 16, 5:37 pm, Jah_Alarm wrote:
> hi,
>
> I need to generate a binary array with a specified average proportion
> of 1s (e.g. [1 0 0 0
>
> 0 1 0 0] has this proportion = 25%). In Matlab I run something like
> random(m,n)
> between 0 and 1. I'm trying to use random.randint(0,2,size=[m,n]), but
On Aug 16, 2010, at 20:37 , Jah_Alarm wrote:
hi,
I need to generate a binary array with a specified average proportion
of 1s (e.g. [1 0 0 0
0 1 0 0] has this proportion = 25%). In Matlab I run something like
random(m,n)
if you're coming from matlab, then you should use the numpy package
(an
[EMAIL PROTECTED] (Bengt Richter) writes:
> Theoretically, the chances of getting an integer from a uniformly
> random sample from an interval of real numbers is practically zero,
> and even allowing for IEEE 754 double representation,
Well, if we're going to be picky, the chances of getting a num
On Sun, 11 Dec 2005 09:46:33 -0800 (PST), Dimos <[EMAIL PROTECTED]> wrote:
>Hello All,
>
>I need some help with random number generation. What I
>need exactly is:
>
>To create a few thousand numbers, decimal and
>integers, between 5 and 90,
>and then to export them as a single column at a
>spread
Dimos wrote:
> Hello All,
>
> I need some help with random number generation. What I
> need exactly is:
>
> To create a few thousand numbers, decimal and
> integers, between 5 and 90,
> and then to export them as a single column at a
> spreadsheet.
>
> I am newbie, I was not able to create decimal
Dimos wrote:
> I need some help with random number generation. What I
> need exactly is:
>
> To create a few thousand numbers, decimal and
> integers, between 5 and 90,
> and then to export them as a single column at a
> spreadsheet.
>
> I am newbie, I was not able to create decimals with
> the ra
Dimos <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I need some help with random number generation. What I
> need exactly is:
>
> To create a few thousand numbers, decimal and
> integers, between 5 and 90,
> and then to export them as a single column at a
> spreadsheet.
>
> I am newbie, I was no
On Mon, 29 Nov 2004 20:51:50 GMT, "drs"
<[EMAIL PROTECTED]> wrote:
>Is there any way to generate random numbers based on arbitrary real valued
>functions? I am looking for something like random.gauss() but with natural
>log and exponential functions.
Try with CRNG, it may have what you need, or b
drs wrote:
Is there any way to generate random numbers based on arbitrary real valued
functions? I am looking for something like random.gauss() but with natural
log and exponential functions.
scipy[1] has a large collection of "standard" univariate pdfs, including
normal, exponential, gamma, and t
drs wrote:
Is there any way to generate random numbers based on arbitrary real valued
functions? I am looking for something like random.gauss() but with natural
log and exponential functions.
thanks,
-d
I remember for having used it on a gaussian generator that you can do that very
easily by your
drs wrote:
Is there any way to generate random numbers based on arbitrary real valued
functions? I am looking for something like random.gauss() but with natural
log and exponential functions.
thanks,
-d
numarray has a random package which provides a number of functions,
including: normal( mean,
On Mon, 29 Nov 2004 20:51:50 GMT, "drs" <[EMAIL PROTECTED]> wrote:
>Is there any way to generate random numbers based on arbitrary real valued
>functions? I am looking for something like random.gauss() but with natural
>log and exponential functions.
>
>thanks,
Don't know what you mean. This kind
12 matches
Mail list logo