commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark R. Diggory" <mdigg...@latte.harvard.edu>
Subject Re: [math] Recent commits to stat, util packages
Date Mon, 07 Jul 2003 22:59:07 GMT
brent@worden.org wrote:

>class ExampleCompositeStatistic implements Variance, Mean {
>    double getMean(){
>        return m;
>    }
>    double getVariance(){
>        return v;
>    }
>    void addValue(double d){
>        // update all stats.
>    }
>    boolean hasStatistic(Class type){
>        return type.isAssignableFrom(this.getClass());
>    }
>}
>  
>

Doesn't a composite just end up being a "UnivariateImpl" in this case? I 
see where your going, but it does also seem to endup having "alot" of 
little interfaces. I'll keep thinking about it some more.

-M.

-- 
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message