octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is NaN used as extrapolation value?


From: David Bateman
Subject: Re: Why is NaN used as extrapolation value?
Date: Mon, 18 Jun 2007 10:27:03 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Søren Hauberg wrote:
> Hi,
>   The current interpolation functions all use NaN as extrapolation
> value. I know that Matlab does this, which (I guess) is why we do it.
> But since we have NA why isn't that used? Using NA as default
> extrapolation value should be Matlab compatible (right?) and would
> IMHO make more sense.
>
> Søren
>
> P.S. Since I brought it up I'll be happy to send patches if requested
> (they should be damn easy to produce...)
>
Yes I believe the only reason is compatibility. However I wouldn't
change it. The user can always specify the extrapval if they want it to
be NA, and changing it will only cause additional bug reports of matlab
incompatibility.

D.

-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



reply via email to

[Prev in Thread] Current Thread [Next in Thread]