Some time ago I mentioned the online version of the book "Numerical Recipes in C" http://www.ulib.org/webRoot/Books/Numerical_Recipes/ and inadvertantly stirred up a hornets' nest. I obtained from this book code to calculate the Incomplete beta function. It appears in: 6.4 Incomplete Beta Function, Student?s Distribution, F-Distribution, Cumulative Binomial Distribution, p.226, and it calls the log-gamma function that appears in: 6.1 Gamma, Beta, and Related Functions, p.213. I wish to attribute this material to its source, but would prefer to cite a more "respectable" source than Numerical Recipes. Can anyone suggest the original source, or a source of something very similar, or a better place to ask the question? Thanks, Clive Jenkins -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Alternative to Numerical Recipes
5 messages · Clive Jenkins, Kim Horn, Brian Ripley +1 more
3 days later
We have had problems with licensing with Numerical Recipes. We wanted to use the code in our product but never got a reply from them about licensing. So we built our own. It is a pity that such a resource cannot be used :-) The original algorithms are mostly published in Appl. Statistics journal. You can down load the Fortran code from StatLib web site and then use F2C to translate to C code. The ones I have used are: Algorithm As 109 Appl. Statist. (1977) Vol.26, P.111 Algorithm As 63 appl. statist. (1973), vol.22, no.3 Natural Log of the Complete Gamma Function Lanczos, C. 'A precision approximation of the gamma function', J. SIAM Numer. Anal., B, 1, 86-96, 1964. All the best Kim ----------------------------------------------------------------------------- Kim Horn Product Manager Data Mining Corvu Australia Pty Ltd Level 4, 1 James Place North Sydney NSW 2060 Australia Telephone: 61 2 9959 3522 Facsimile: 61 2 9959 3583 www.corvu.com C O R V U MANAGING BUSINESS PERFORMANCE "Top 100 Emerging Companies to Watch in 2000" Computerworld, November, 1999 -----------------------------------------------------------------------------
Clive Jenkins wrote:
Some time ago I mentioned the online version of the book "Numerical Recipes in C" http://www.ulib.org/webRoot/Books/Numerical_Recipes/ and inadvertantly stirred up a hornets' nest. I obtained from this book code to calculate the Incomplete beta function. It appears in: 6.4 Incomplete Beta Function, Student?s Distribution, F-Distribution, Cumulative Binomial Distribution, p.226, and it calls the log-gamma function that appears in: 6.1 Gamma, Beta, and Related Functions, p.213. I wish to attribute this material to its source, but would prefer to cite a more "respectable" source than Numerical Recipes. Can anyone suggest the original source, or a source of something very similar, or a better place to ask the question? Thanks, Clive Jenkins -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 13 Nov 2000, Kim Horn wrote:
We have had problems with licensing with Numerical Recipes. We wanted to use the code in our product but never got a reply from them about licensing. So we built our own. It is a pity that such a resource cannot be used :-) The original algorithms are mostly published in Appl. Statistics journal. You can down load the Fortran code from StatLib web site and then use F2C to translate to C code.
R uses some Appl Statistics algorithms. They too have conditions, and we obtained permission to include code (even translated code) in R.
From the Statlib site:
The Royal Statistical Society holds the copyright to these routines, but has given its permission for their distribution provided that no fee is charged. R itself is a source of routines for this sort of thing, we believe with documented sources, and of course with strong usage conditions (GPL).
The ones I have used are: Algorithm As 109 Appl. Statist. (1977) Vol.26, P.111 Algorithm As 63 appl. statist. (1973), vol.22, no.3 Natural Log of the Complete Gamma Function Lanczos, C. 'A precision approximation of the gamma function', J. SIAM Numer. Anal., B, 1, 86-96, 1964. All the best Kim ----------------------------------------------------------------------------- Kim Horn Product Manager Data Mining Corvu Australia Pty Ltd Level 4, 1 James Place North Sydney NSW 2060 Australia Telephone: 61 2 9959 3522 Facsimile: 61 2 9959 3583 www.corvu.com C O R V U MANAGING BUSINESS PERFORMANCE "Top 100 Emerging Companies to Watch in 2000" Computerworld, November, 1999 ----------------------------------------------------------------------------- Clive Jenkins wrote:
Some time ago I mentioned the online version of the book "Numerical Recipes in C" http://www.ulib.org/webRoot/Books/Numerical_Recipes/ and inadvertantly stirred up a hornets' nest. I obtained from this book code to calculate the Incomplete beta function. It appears in: 6.4 Incomplete Beta Function, Student’s Distribution, F-Distribution, Cumulative Binomial Distribution, p.226, and it calls the log-gamma function that appears in: 6.1 Gamma, Beta, and Related Functions, p.213. I wish to attribute this material to its source, but would prefer to cite a more "respectable" source than Numerical Recipes. Can anyone suggest the original source, or a source of something very similar, or a better place to ask the question? Thanks, Clive Jenkins -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
To avoid any confusion, we wrote our own code from scratch using the articles as a hint on how to do it. The cost of this far outways the beuracracy involved. The sugestion to use translated code (F2C) was for researchers wanting to use "C" with R. The necessary permissions should be obtained. All the best Kim ----------------------------------------------------------------------------- Kim Horn Product Manager Data Mining Corvu Australia Pty Ltd Level 4, 1 James Place North Sydney NSW 2060 Australia Telephone: 61 2 9959 3522 Facsimile: 61 2 9959 3583 www.corvu.com C O R V U MANAGING BUSINESS PERFORMANCE "Top 100 Emerging Companies to Watch in 2000" Computerworld, November, 1999 -----------------------------------------------------------------------------
Prof Brian D Ripley wrote:
On Mon, 13 Nov 2000, Kim Horn wrote:
We have had problems with licensing with Numerical Recipes. We wanted to use the code in our product but never got a reply from them about licensing. So we built our own. It is a pity that such a resource cannot be used :-) The original algorithms are mostly published in Appl. Statistics journal. You can down load the Fortran code from StatLib web site and then use F2C to translate to C code.
R uses some Appl Statistics algorithms. They too have conditions, and we obtained permission to include code (even translated code) in R.
From the Statlib site:
The Royal Statistical Society holds the copyright to these routines, but has given its permission for their distribution provided that no fee is charged. R itself is a source of routines for this sort of thing, we believe with documented sources, and of course with strong usage conditions (GPL).
The ones I have used are: Algorithm As 109 Appl. Statist. (1977) Vol.26, P.111 Algorithm As 63 appl. statist. (1973), vol.22, no.3 Natural Log of the Complete Gamma Function Lanczos, C. 'A precision approximation of the gamma function', J. SIAM Numer. Anal., B, 1, 86-96, 1964. All the best Kim ----------------------------------------------------------------------------- Kim Horn Product Manager Data Mining Corvu Australia Pty Ltd Level 4, 1 James Place North Sydney NSW 2060 Australia Telephone: 61 2 9959 3522 Facsimile: 61 2 9959 3583 www.corvu.com C O R V U MANAGING BUSINESS PERFORMANCE "Top 100 Emerging Companies to Watch in 2000" Computerworld, November, 1999 ----------------------------------------------------------------------------- Clive Jenkins wrote:
Some time ago I mentioned the online version of the book "Numerical Recipes in C" http://www.ulib.org/webRoot/Books/Numerical_Recipes/ and inadvertantly stirred up a hornets' nest. I obtained from this book code to calculate the Incomplete beta function. It appears in: 6.4 Incomplete Beta Function, Student?s Distribution, F-Distribution, Cumulative Binomial Distribution, p.226, and it calls the log-gamma function that appears in: 6.1 Gamma, Beta, and Related Functions, p.213. I wish to attribute this material to its source, but would prefer to cite a more "respectable" source than Numerical Recipes. Can anyone suggest the original source, or a source of something very similar, or a better place to ask the question? Thanks, Clive Jenkins -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On 13 Nov 00, at 7:20, Prof Brian D Ripley wrote:
On Mon, 13 Nov 2000, Kim Horn wrote:
We have had problems with licensing with Numerical Recipes. We wanted to use the code in our product but never got a reply from them about licensing. So we built our own. It is a pity that such a resource cannot be used :-) The original algorithms are mostly published in Appl. Statistics journal. You can down load the Fortran code from StatLib web site and then use F2C to translate to C code.
R uses some Appl Statistics algorithms. They too have conditions, and we obtained permission to include code (even translated code) in R. >From the Statlib site: The Royal Statistical Society holds the copyright to these routines, but has given its permission for their distribution provided that no fee is charged. R itself is a source of routines for this sort of thing, we believe with documented sources, and of course with strong usage conditions (GPL).
Surely the *algorithms* themselves are not subject to copyright? for instance if I look up Abramowitz and Stegun and find some suggestion for estimating the approximation and then code it myself .. no problem. If I look at the original ACM paper for some algorithm and code it myself.. no problem. If I look at the APSTAT code to implement some algorithm then code it myself 'as inspired by AS241' .. presumably, no problem. If I directly translate (using a conversion program) that code to another language then perhaps there is a grey area, but then often that translated code will need significant modification, so maybe again there is no problem. It is interesting that no copyright notice appears in the AS code itself : I have in front of me AS241 (function PPND7) , just a reference to the publication. It may be that "
The Royal Statistical Society holds the copyright to these routines, but has given its permission for their distribution provided that no fee is charged.
"
is intended to apply to the DISTRIBUTION of the raw SOURCE (eg on a CD
shovelware compilation) and that incorporation into a larger work in
compiled form would not be an issue of concern to the RSS.
It seems to me that,at least in practice, widely and freely disseminated
implementations of algorithms are pretty much inevitably public domain or
at least that the provenance is so complex that untangling it isn't worth
the candle.
I quote from the Cephes readme
" Some software in this archive may be from the book _Methods and
Programs for Mathematical Functions_ (Prentice-Hall or Simon & Schuster
International, 1989) or from the Cephes Mathematical Library, a
commercial product. In either event, it is copyrighted by the author.
What you see here may be used freely but it comes with no support or
guarantee.
snip
Stephen L. Moshier
moshier at na-net.ornl.gov
"
most of the source contains comments like
/* Cephes Math Library Release 2.8: June, 2000
Copyright 1984, 1987, 1995, 2000 by Stephen L. Moshier
*/
but it is clear that a) (at least some of) the copyright is unclear b)
the putative copyright owner gives you permission to 'use freely'.
I have not looked in depth at GPL'd mathematical/statistical code eg in
GSL, but it seems probable that much of this is a 'port' of earlier work
rather than 'completely original' code, thus calling into question the
validity of the GPL if there exists copyright over the earlier work.
imho, these issues of licensing of fundamental algorithms and the
expression/implementation of those, should NOT arise and need not arise.
It seems very arguable that the authors of various AS algorithms intended
to place those algorithms and the expressions thereof in the public
domain. I think it likely that Press et al ('Numerical Recipes') had the
same intent .. here is the cookbook (based on other people's work : the
shoulders of giants, if you will), use it at your own risk .. ok.
Most implementations of algorithms are in the context of a larger work :
imo, licensing is irrelevant, 'copyright' also (not so if you attempt to
make money with a thin wrapper around an extant body of work).
fwiw
As an aside, it seems that the default 'reply to' address for this list is
set to the sender, rather than the list .(I am using Pegasus, not that it
should matter). Is there a reason for this? (probably in the FAQ somewhere
<g>).
John Aitchison
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._