[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: matrix threshold calculation
From: |
Ben Abbott |
Subject: |
Re: matrix threshold calculation |
Date: |
Tue, 28 Apr 2009 08:45:00 -0400 |
On Tuesday, April 28, 2009, at 08:34AM, "Michael Creel" <address@hidden> wrote:
>
>Francesco Potorti`-2 wrote:
>>
>>>I want to calculate the threshold value of a matrix. What i want is to
>>>find a value that is over the 95% percentages of the matrix values. Any
>>>idea how can i calculate this value via octave?
>>
>> A = rand (10, 10);
>> t = quantile (A(:), 0.95)
>>
>> --
>> Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
>> ISTI - Area della ricerca CNR Fax: +39 050 315 2040
>> via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
>> (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/
>
>A note, the quantile function is not in Octave 3.0.1, but it is in 3.1.55. I
>copied it (and __quantile__.m into my working copy of 3.0.1, and it works
>like a charm. Very nice how a menu of methods is available. Many thanks to
>the authors.
>Michael
>
The quatile.m and __quantile__.m functions are in 3.0.5, you may want to
upgrade.
Ben