octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #55162] qfuncinv in communications pkg depends


From: Tony Richardson
Subject: [Octave-bug-tracker] [bug #55162] qfuncinv in communications pkg depends on statistics pkg
Date: Tue, 4 Dec 2018 11:31:02 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?55162>

                 Summary: qfuncinv in communications pkg depends on statistics
pkg
                 Project: GNU Octave
            Submitted by: amrichardson
            Submitted on: Tue 04 Dec 2018 04:31:01 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: Tony Richardson
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.1
        Operating System: Any

    _______________________________________________________

Details:

Loading the communications package does not automatically load the statistics
package, but qfuncinv in the comm pkg requires norminv from the statistics
pkg.  Using qfuncinv after loading the comm pkg produces an error re an
undefined function unless the statistics package is also loaded.

I would recommend replacing the line:


y = -norminv(x)


with


y = sqrt(2)*erfcinv(2*x)


in qfuncinv.m to remove the dependency.  (erfcinv is built-in)  norminv
ultimately relies on erfcinv to produce a result anyway.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55162>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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