octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build in functions (exprnd)


From: Rik
Subject: Re: Build in functions (exprnd)
Date: Mon, 5 Nov 2018 11:19:14 -0800

On 11/04/2018 09:33 AM, Michael D Godfrey wrote:


On 11/4/18 5:17 PM, Rik wrote:
On 11/04/2018 08:58 AM, Michael D Godfrey wrote:
On 11/4/18 3:01 PM, Mohammed Elmusrati wrote:
Hello,

We had a complex simulation program to assist systems’ reliability.
Anyhow the code was written in Octave 4.0.2. We have observed that the
same code does not work on Octave 4.4.1 and the reason that ( 'exprnd’
undefined)!  This function generates random numbers with exponential
distribution. Is it a bug or the function has been removed from the new
version of Octave?

Thank you

Mohammed Elmusrati 
This got answered, but there appears to be no mention in the current
Manual about the
moves of functions to packages on sourceforge.
It was mentioned in the NEWS file for 4.4.

 ** The following statistical functions have been moved from core
    Octave to the statistics package available from Octave Forge.

followed by the list of functions which includes exprnd.

--Rik
Not everyone reads the NEWS file, or, of course, the Manual...

Michael,

Can you file a bug about this?  What should have happened is that the list of functions in the statistics package was also updated in the core m-file __unimplemented__.m.  This m-file is called when someone types a word which is unrecognized by the interpreter.  There is already a test for possible keywords which belong to the statistics function.

    ## statistics
    case {"addedvarplot", "addlevels", "addTerms", "adtest", ...
          "andrewsplot", "anova1", "anova2", "anovan", "ansaribradley", ...

...
...
      txt = check_package (fcn, "statistics");

The change should be made on stable.

Cheers,
Rik

reply via email to

[Prev in Thread] Current Thread [Next in Thread]