[
https://issues.apache.org/jira/browse/MATH-173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558005#action_12558005
]
Bob MacCallum commented on MATH-173:
------------------------------------
Thanks Luc, I don't think your English was at fault, just my brain! Using Perl
for so long, I tend to use hashes for absolutely everything.
Firstly, you mean Collection (not Container), right?
So whatever we decide to pass to the methods, the API will look like this:
public abstract double anovaPValue(Collection categorydata)
throws IllegalArgumentException, MathException;
public abstract double anovaFValue(Collection categorydata)
throws IllegalArgumentException, MathException;
[offtopic, I guess a boolean anovaTest(Collection categorydata, double alpha)
would be useful too.]
The documentation and arg checking will say whether or not we want a collection
of double[] or Category.
It will only be truly strongly typed when we use Generics, right?
I am happy to go ahead with Category. I had a quick look through the rest of
commons math to see if there was something like that already (doesn't seem to
be) and where it should go (not really sure). I also tried to think what other
stats might use such an entity (and perhaps give it a name that is more
suitable for general use).
Are we reinventing DoubleArray? Could we just create an implementation for
that which includes a name? I personally find the overhead of copying
double[]s a bit worrying.
Thanks for all your help with this.
> One-way ANOVA
> -------------
>
> Key: MATH-173
> URL: https://issues.apache.org/jira/browse/MATH-173
> Project: Commons Math
> Issue Type: New Feature
> Affects Versions: Nightly Builds
> Reporter: Bob MacCallum
> Fix For: 1.2
>
> Attachments: Anova.java, AnovaImpl.java, AnovaTest.java
>
>
> Here is some proposed code to add one-way ANOVA tests to commons-math
> I will be attaching
> src/test/org/apache/commons/math/stat/inference/AnovaTest.java
> src/java/org/apache/commons/math/stat/inference/Anova.java
> src/java/org/apache/commons/math/stat/inference/AnovaImpl.java
> I followed TTest as a style guide.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.