Hi,
I have updated even more code. Both functions should be
functional now.
I was able to compile the code outside of OOo and it
compiled (with MS
VC 6.0 - the 1998 version) and worked correctly, though I
have no idea
if it will integrate seamlessly into OOo.
[For the external compile I had to make some minor changes
to the code,
but the general structure was unchanged.]
Now, both the one matrix and the multiple matrices variants
function.
Somebody with some OOo knowledge should now integrate the
code where it
belongs. A Menu Entry like 'One-Way Anova' seems reasonable.
This would
partially solve issue
http://www.openoffice.org/issues/show_bug.cgi?id=4921 ,
well at least
the one way ANOVA. [This is the more important of the ANOVA
variants.]
Kind regards,
Leonard Mada
Code included:
Calc-ANOVA-No_ARRAY.cpp
- contains the code for one-way ANOVA (NO block type),
- all input is in the form of:
-- one data matrix (every column is a different variable)
or
-- multiple data matrices
- have removed most dynamic arrays
(except for two, which are initialized and destroyed
properly)
ANOVA.Test.Code.cpp
- contains the same C++ code adapted so that it can be
compiled with MS
VC 6.0 (independent of OOo code)
- this way, it is possible to test the code without having
to
(re)compile OOo
- see also the 'ANOVA-Test.gnumeric' from my previous post
ANOVA-Test.gnumeric (see previous post for this file)
- gnumeric file to test the results of the ANOVA code
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe sc.openoffice.org
For additional commands, e-mail: dev-help sc.openoffice.org
|