[gnumeric] Fix documentation of r.*nbinom. [#703164]



commit df02671de1ae78caced7d7d7a68c0dbc1fdf6b19
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Thu Jun 27 22:22:32 2013 -0600

    Fix documentation of r.*nbinom. [#703164]
    
    2013-06-27  Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * functions.c (help_r_*nbinom): correct description

 NEWS                     |    2 +-
 plugins/fn-r/ChangeLog   |    4 ++++
 plugins/fn-r/functions.c |   12 ++++++------
 3 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/NEWS b/NEWS
index 4f56fff..c7c9f5f 100644
--- a/NEWS
+++ b/NEWS
@@ -4,7 +4,7 @@ Andreas:
        * Improve xlsx export of Gnumeric functions.
        * Improve xlsx import of Excel 2010 functions.
        * Improve xls import of Excel 2010 functions.
-       * Fix documentation of r.q*.
+       * Fix documentation of r.q* and r.*nbinom. [#703164]
        * Add Excel 2010's BETA.DIST.
        * Fix crash on corrupted files. [#703149] [#703215]
 
diff --git a/plugins/fn-r/ChangeLog b/plugins/fn-r/ChangeLog
index d327fd9..3873a11 100644
--- a/plugins/fn-r/ChangeLog
+++ b/plugins/fn-r/ChangeLog
@@ -1,3 +1,7 @@
+2013-06-27  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+       * functions.c (help_r_*nbinom): correct description
+
 2013-06-25  Andreas J. Guelzow <aguelzow pyrshep ca>
 
        * functions.c (help_r_q*): correct description of p and log_p
diff --git a/plugins/fn-r/functions.c b/plugins/fn-r/functions.c
index 92a5dad..92153ac 100644
--- a/plugins/fn-r/functions.c
+++ b/plugins/fn-r/functions.c
@@ -831,8 +831,8 @@ gnumeric_r_qbinom (GnmFuncEvalInfo *ei, GnmValue const * const *args)
 
 static GnmFuncHelp const help_r_dnbinom[] = {
        { GNM_FUNC_HELP_NAME, F_("R.DNBINOM:probability density function of the negative binomial 
distribution") },
-       { GNM_FUNC_HELP_ARG, F_("x:observation") },
-       { GNM_FUNC_HELP_ARG, F_("n:the number of trials") },
+       { GNM_FUNC_HELP_ARG, F_("x:observation (number of failures)") },
+       { GNM_FUNC_HELP_ARG, F_("n:required number of successes") },
        { GNM_FUNC_HELP_ARG, F_("psuc:the probability of success in each trial") },
        { GNM_FUNC_HELP_ARG, F_("give_log:if true, log of the result will be returned instead") },
        { GNM_FUNC_HELP_DESCRIPTION, F_("This function returns the probability density function of the 
negative binomial distribution.") },
@@ -855,11 +855,11 @@ gnumeric_r_dnbinom (GnmFuncEvalInfo *ei, GnmValue const * const *args)
 
 static GnmFuncHelp const help_r_pnbinom[] = {
        { GNM_FUNC_HELP_NAME, F_("R.PNBINOM:cumulative distribution function of the negative binomial 
distribution") },
-       { GNM_FUNC_HELP_ARG, F_("x:observation") },
-       { GNM_FUNC_HELP_ARG, F_("n:the number of trials") },
+       { GNM_FUNC_HELP_ARG, F_("x:observation (number of failures)") },
+       { GNM_FUNC_HELP_ARG, F_("n:required number of successes") },
        { GNM_FUNC_HELP_ARG, F_("psuc:the probability of success in each trial") },
        { GNM_FUNC_HELP_ARG, F_("lower_tail:if true (the default), the lower tail of the distribution is 
considered") },
-       { GNM_FUNC_HELP_ARG, F_("log_p:if true, log of the probability is used") },
+       { GNM_FUNC_HELP_ARG, F_("give_log:if true, log of the result will be returned instead") },
        { GNM_FUNC_HELP_DESCRIPTION, F_("This function returns the cumulative distribution function of the 
negative binomial distribution.") },
        { GNM_FUNC_HELP_SEEALSO, "R.DNBINOM,R.QNBINOM" },
        { GNM_FUNC_HELP_END }
@@ -882,7 +882,7 @@ gnumeric_r_pnbinom (GnmFuncEvalInfo *ei, GnmValue const * const *args)
 static GnmFuncHelp const help_r_qnbinom[] = {
        { GNM_FUNC_HELP_NAME, F_("R.QNBINOM:probability quantile function of the negative binomial 
distribution") },
        { GNM_FUNC_HELP_ARG, F_("p:probability or natural logarithm of the probability") },
-       { GNM_FUNC_HELP_ARG, F_("n:the number of trials") },
+       { GNM_FUNC_HELP_ARG, F_("n:required number of successes") },
        { GNM_FUNC_HELP_ARG, F_("psuc:the probability of success in each trial") },
        { GNM_FUNC_HELP_ARG, F_("lower_tail:if true (the default), the lower tail of the distribution is 
considered") },
        { GNM_FUNC_HELP_ARG, F_("log_p:if true, @{p} is the natural logarithm of the probability; defaults to 
false") },


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