All,

Well, there are a few issues with the account balance tracker as it
currently stands.  I'm still not quite clear as to who changed what so
I'll just toss this letter onto the list.

First, the split-get-balance call appears to consistently return 0 for
me.
        Has this been changed recently  ?

Second, the new stats-collector will need some tuning to be used for
computing the average balance.
This is because we need to calculate a time-average, not a
group-average. To accomplish this,  we need
to accumulate (balance * time-interval) values and then divide  by the
total time.  At the same time, min and max are calculated
on the instantaneous balance values (without any time consideration).

SO, the stats-collector will need to be passed both the time interval
length AND the total instantaneous balance so that it may make the
appropriate calculations.  This should be easy to implement but the
stats-collector will not be quite so generally applicable.  Though you
could make the time interval default to one (1) so that the routine
would function as it does currently in the absence of time information
(a kind of optional weighting parameter).  (IMHO an elegant solution)

Note that currently the stats collector is currently being passed the
time interval in seconds, which leads to some very large (though
unfortunately not realistic) maximum balance numbers.

On a hopefully unrelated note, in tonight's CVS build, my account list window 
currently claims that I have infinite income.

    (regrettably untrue)

Well, thats all for me tonight, gotta get up early to catch a plane.

Cheers.

--

 Matt Martin
[EMAIL PROTECTED]

600 West Grove Parkway  #1042
Tempe, AZ, 85283

(480) 775 2660




--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]

Reply via email to