PureBytes Links
Trading Reference Links
|
--- Lawrence Chan <stnahc@xxxxxxxx> wrote:
...
> OK - why Length + 1?
>
> In the time of SystemWriter the length can be 0.
> plug the length 0 in and you will have a good time
> :)
>
> The guy who wrote xaverage figured a base case of 0
> is important to make the definition complete,
> thats all. Thus the definition used in TS is wrong
> :)
>
> When Length is huge and if it is not
> single-precision,
> it does not matter.
>
> -Lawrence
>
That explains the +1, though you have to admit it
would be better to simple give zero, an error, or C
when idiots ask for a zero-length m.a.
Still no good explanation as the factor of 2 though.
Thanks for the story!
Cheers,
Jack
|