You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Mark R. Diggory" <md...@latte.harvard.edu> on 2003/05/14 20:01:26 UTC

[math][patch] Lets try this again, here's a new patch for Rolling Storage

Ok, this patch does a better job in a number of areas:

1.) It creates a new class RollingUnivariate that extends Univariate. 
Univariates properties are set to protected for limited access to within 
extended classes.

2.) There are no constants.

3.) There is an "index" reference to the current entry of interest in 
the array.

4.) The insertValue method now loops around the existing array to 
replace/store the new values (and at the same time overwrite the value 
currently leaving the window. It increments and mods the index after 
each update.

Once, you decide/define the package structure for Univar and I'll gladly 
  work further on this.

-Mark