octave-bug-tracker
[Top][All Lists]
Advanced

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

Re: [Octave-bug-tracker] [bug #36732] interp1 does not check input for m


From: Francesco Potortì
Subject: Re: [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity
Date: Mon, 20 Aug 2012 10:53:14 +0200

>About non-distinct points, I am assuming that the
>Manual is correct. It says in Section 29.1:
>
>Duplicate points in x specify a discontinuous interpolant. There should
>be at most 2 consecutive points with the same value.

Most probably, this means that, once the X are sorted, any repeated
points should be in couples (i.e. three consecutive repeated points are
not allowed), but there is no limit on the number of couples.

>The discontinuous interpolant is rightcontinuous if x is increasing,
>left-continuous if it is decreasing. Discontinuities are (currently)
>only allowed for "nearest" and "linear" methods; in all other cases, x
>must be strictly monotonic.

This makes little sense, because X is sorted in increasing order anyway.
Maybe this was a comment written at a time when there was no sorting in
place.

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Fax:    +39.050.315.2040  
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it




reply via email to

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