floating point subtraction has properties which differ from those of
rational (or real) numbers.  This could easily account for an "off by
one" result difference for the detected threshold, and once you have
an error like that dependent values would also have to change.

-- 
Raul

On Tue, Jul 3, 2012 at 12:17 PM, Bo Jacoby <bojac...@yahoo.dk> wrote:
> The old ABC program and the new ABC program were supposed to be equivalent 
> algorithms, and so they should give exactly the same results for the same 
> test data. That is why I am bewildered by the difference. Ian did the test 
> and knows about the test data.
> - Bo
>
>>________________________________
>> Fra: Raul Miller <rauldmil...@gmail.com>
>>Til: Programming forum <programming@jsoftware.com>
>>Sendt: 16:34 tirsdag den 3. juli 2012
>>Emne: Re: [Jprogramming] Kalman filter in J?
>>
>>On Tue, Jul 3, 2012 at 6:08 AM, Bo Jacoby <bojac...@yahoo.dk> wrote:
>>> The result changes from C=90 (correct) in the old ABC to C=89
>>> (incorrect) in the new ABC. Also the old ABC result B=41 and the
>>> new ABC result B=37 should both be B=20. That is bewildering.
>>
>>Which test data are you using here (for X)?
>>
>>(Have you verified that the noise does not shift the values of the
>>"best result"?)
>>
>>--
>>Raul
>>----------------------------------------------------------------------
>>For information about J forums see http://www.jsoftware.com/forums.htm
>>
>>
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to