[Top][All Lists]

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

[Octave-bug-tracker] [bug #36732] interp1 does not check input for monot

From: Francesco Potortì
Subject: [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity
Date: Mon, 20 Aug 2012 11:18:19 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0

Follow-up Comment #37, bug #36732 (project octave):

>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,
which would also explain the reason why the text requires monotonicity.


Reply to this item at:


  Messaggio inviato con/da Savannah

reply via email to

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