[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to