[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: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity |
Date: |
Thu, 23 Aug 2012 12:10:38 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.25 (KHTML, like Gecko) Version/6.0 Safari/536.25 |
Follow-up Comment #58, bug #36732 (project octave):
I've pushed a changeset to make testing more convenient ... unfortunately, I
forgot to modify the changelog description :-(
http://hg.savannah.gnu.org/hgweb/octave/rev/94d512d712e3
Ed, I hesitate to change the choice of left/right continuity as this was
decided quite some time ago (several years I think).
The example below may be of interest.
X = [ 2 1 3 2];
Y = [ 9 1 3 10];
% These are right-continuos (returns 10 at X=2)
y1 = interp1 (X, Y, 2)
[~, n] = sort (X);
y2 = interp1 (X(n), Y(n), 2)
[~, n] = sort (X, "descend");
y3 = interp1 (X(n), Y(n), 2)
y4 = interp1 (X, Y, 2, "-right")
% These are left-continuous (returns 9 at X=2)
[~, n] = sort (fliplr (X), "descend");
y5 = interp1 (X(n), fliplr(Y)(n), 2)
y6 = interp1 (X, Y, 2, "-left")
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36732>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, (continued)
- Message not available
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Ben Abbott, 2012/08/20
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Ben Abbott, 2012/08/20
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Michael Godfrey, 2012/08/20
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Michael Godfrey, 2012/08/21
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Michael Godfrey, 2012/08/21
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Michael Godfrey, 2012/08/21
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Ben Abbott, 2012/08/21
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Michael Godfrey, 2012/08/21
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Ben Abbott, 2012/08/21
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Edward Meyer, 2012/08/22
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity,
Ben Abbott <=
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Ben Abbott, 2012/08/23
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Michael Godfrey, 2012/08/23
- [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Ben Abbott, 2012/08/23
- Re: [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Francesco Potortì, 2012/08/19
- Message not available
- Re: [Octave-bug-tracker] [bug #36732] interp1 does not check input for monotonicity, Michael D Godfrey, 2012/08/17