Commit fd377e52 authored by Jody Goldberg's avatar Jody Goldberg
Browse files

Read the XL docs to see what it wants.

parent 8a6c94e1
......@@ -1443,7 +1443,10 @@ gnumeric_chitest (FunctionEvalInfo *ei, Value **argv)
g_slist_free (tmp->data);
g_slist_free (p1.columns);
return value_new_float (1. - pchisq (p2.sum, p1.rows - 1));
/* FIXME : XL docs claim df = (r-1)(c-1) not (r-1),
* However, that makes no sense.
*/
return value_new_float (1. - pchisq (p2.sum, (p1.rows - 1)));
}
/***************************************************************************/
......
......@@ -1443,7 +1443,10 @@ gnumeric_chitest (FunctionEvalInfo *ei, Value **argv)
g_slist_free (tmp->data);
g_slist_free (p1.columns);
return value_new_float (1. - pchisq (p2.sum, p1.rows - 1));
/* FIXME : XL docs claim df = (r-1)(c-1) not (r-1),
* However, that makes no sense.
*/
return value_new_float (1. - pchisq (p2.sum, (p1.rows - 1)));
}
/***************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment