octave-maintainers
[Top][All Lists]
Advanced

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

Re: minor problem in iqr.m


From: Martin Helm
Subject: Re: minor problem in iqr.m
Date: Fri, 10 Aug 2012 13:38:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0

Am 10.08.2012 13:32, schrieb Mike Miller:
> On Fri, Aug 10, 2012 at 3:00 AM, Applee wrote:
>> I think the condition check in iqr.m from line 52 - 56 may be wrong,
>>
>> 52    if (! (isscalar (dim) && dim == round (dim))
>> 53 && dim > 0
>> 54 && dim < (nd + 1))
>> 55      error ("iqr: dim must be an integer and valid dimension");
>> 56    endif
> What version of Octave are you looking at? Please make sure you get
> the current stable or development version so that you are not
> reporting something that has already been fixed.
>
> The code you are quoting is not in any current version of Octave so I
> think this has already been fixed.
>
Yep, octave 3.6.2 (looking only at the current release here) already
contains an improved check in iqr

    if (!(isscalar (dim) && dim == fix (dim))
        || !(1 <= dim && dim <= nd))
      error ("iqr: DIM must be an integer and a valid dimension");
    endif



reply via email to

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