Cannot Find normrnd

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot Find normrnd

Fritz Sonnichsen
I am trying to work with random numbers drawn from the normal
distribution. I thought something like the code below should do this but
normrnd cannot be found.  Possibly I am not loading the correct package?

Thanks
Fritz
=============================
pkg load statistics
random("normal", 5, 2, [10, 20])
....
error: 'normrnd' undefined near line 155 column 16
error: called from     random at line 155 column 14



Reply | Threaded
Open this post in threaded view
|

Re: Cannot Find normrnd

Sahil
Fritz Sonnichsen wrote

> I am trying to work with random numbers drawn from the normal
> distribution. I thought something like the code below should do this but
> normrnd cannot be found.  Possibly I am not loading the correct package?
>
> Thanks
> Fritz
> =============================
> pkg load statistics
> random("normal", 5, 2, [10, 20])
> ....
> error: 'normrnd' undefined near line 155 column 16
> error: called from     random at line 155 column 14

Hi

Apparently, I'm able to get the output after running your commands on the
dev branch. Can you tell which version, OS etc. are you using for Octave?


> octave:6> pkg load statistics
> octave:7> random("normal",5,2,[10,20])
> ans =
>
>  Columns 1 through 7:
>
>     6.04793    5.30986    3.89205    5.16110    4.60771    3.62737  
> 3.24866
>     5.50658    2.51923    8.39957    5.03407    5.24663    9.31128  
> 6.26192
>     3.18043    6.77380    2.92108    3.82747    3.02390    2.72012  
> 6.52314
>     8.74731    6.79731    5.47822    7.24260    7.45019    1.58427  
> 4.12657
>     5.29708    2.61088    3.27891    3.20453    3.17144    6.64855  
> 7.18288
>     7.44349    5.71044    6.43445    3.05593    4.54212    4.02768  
> 6.83648
>     5.88481    5.04915    4.67753    1.52675    2.44657    7.01068  
> 6.32419
>     3.96108    3.68887    3.41194    2.47419    5.07946    7.11425  
> 4.86674
>     2.83584    5.78327    9.66277    4.27293    5.42643    6.33232  
> 8.12210
>     6.01046    2.32982    7.68564    3.18514    5.51194    4.85756  
> 6.26934
>
> :
>
> octave:8>





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Cannot Find normrnd

Fritz Sonnichsen
Thank you Sahil.
   I am running 4.4.0 on WIN7 64-bit.
Fritz

On 7/6/2018 4:15 PM, Sahil wrote:

> Fritz Sonnichsen wrote
>> I am trying to work with random numbers drawn from the normal
>> distribution. I thought something like the code below should do this but
>> normrnd cannot be found.  Possibly I am not loading the correct package?
>>
>> Thanks
>> Fritz
>> =============================
>> pkg load statistics
>> random("normal", 5, 2, [10, 20])
>> ....
>> error: 'normrnd' undefined near line 155 column 16
>> error: called from     random at line 155 column 14
> Hi
>
> Apparently, I'm able to get the output after running your commands on the
> dev branch. Can you tell which version, OS etc. are you using for Octave?
>
>
>> octave:6> pkg load statistics
>> octave:7> random("normal",5,2,[10,20])
>> ans =
>>
>>   Columns 1 through 7:
>>
>>      6.04793    5.30986    3.89205    5.16110    4.60771    3.62737
>> 3.24866
>>      5.50658    2.51923    8.39957    5.03407    5.24663    9.31128
>> 6.26192
>>      3.18043    6.77380    2.92108    3.82747    3.02390    2.72012
>> 6.52314
>>      8.74731    6.79731    5.47822    7.24260    7.45019    1.58427
>> 4.12657
>>      5.29708    2.61088    3.27891    3.20453    3.17144    6.64855
>> 7.18288
>>      7.44349    5.71044    6.43445    3.05593    4.54212    4.02768
>> 6.83648
>>      5.88481    5.04915    4.67753    1.52675    2.44657    7.01068
>> 6.32419
>>      3.96108    3.68887    3.41194    2.47419    5.07946    7.11425
>> 4.86674
>>      2.83584    5.78327    9.66277    4.27293    5.42643    6.33232
>> 8.12210
>>      6.01046    2.32982    7.68564    3.18514    5.51194    4.85756
>> 6.26934
>>
>> :
>>
>> octave:8>
>
>
>
>
> --
> Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
>
>



Reply | Threaded
Open this post in threaded view
|

Re: Cannot Find normrnd

Mike Miller-4
On Fri, Jul 06, 2018 at 16:18:32 -0400, Fritz Sonnichsen wrote:
>   I am running 4.4.0 on WIN7 64-bit.

The Octave 4.4.0 bundle comes with statistics 1.3.0. You should update
to statistics 1.4.0 using

  pkg install -forge statistics

--
mike



signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot Find normrnd

Fritz Sonnichsen
OK. That worked. I think I need to go thru my packages and update them.
Thanks all!
Fritz

On 7/6/2018 4:24 PM, Mike Miller wrote:
On Fri, Jul 06, 2018 at 16:18:32 -0400, Fritz Sonnichsen wrote:
  I am running 4.4.0 on WIN7 64-bit.
The Octave 4.4.0 bundle comes with statistics 1.3.0. You should update
to statistics 1.4.0 using

  pkg install -forge statistics