Dimension Keywords [message #86450] |
Mon, 11 November 2013 01:58  |
fd_luni
Messages: 66 Registered: January 2013
|
Member |
|
|
Hi
I want to indicate the dimension across which to calculate the percentiles to a matrix. I used this but it doesn't work:
cgPercentiles(X, Percentiles=[0.975],dimension=3) where X is the matrix.
Does anyone know how to indicate the dimension across which to calculate the percentiles to a matrix?
Thanks,
Maria
|
|
|
|
|
Re: Dimension Keywords [message #92720 is a reply to message #86452] |
Tue, 16 February 2016 21:23  |
JP
Messages: 55 Registered: April 2008
|
Member |
|
|
David, some time ago I contributed $9.95 to your cgPercetiles with dimension keyword.
However, what I get is not exactly what I need.
example:
IDL> a = randomU(seed, 100, 100, 10)
IDL> help, cgPercentiles(a, percentiles=[0.50], dimension=3)
<Expression> FLOAT = Array[1, 10]
What I actually would like to have is a 100x100 array with the 50th percentile calculated accross the third dimension, much like
IDL> help, median(a, dimension=3)
<Expression> FLOAT = Array[100, 100]
(of course for the 50th percentile I already have MEDIAN, but I want other percentiles.
Am I doing anything wrong and there is a way to obtain what I need?
thanks
JP
On Tuesday, 12 November 2013 02:27:59 UTC+11, David Fanning wrote:
> David Fanning writes:
>
>> I spent an hour adding such a keyword to cgPercentiles this morning. If
>> you would like to make a contribution to this IDL work at the Coyote
>> Store, I would be happy to send the updated copy to you.
>>
>> http://www.idlcoyote.com/index.php?main_page=index&cPath =67
>
> Whoops! That's not going to work. Try this instead:
>
> http://www.idlcoyote.com/coyotestore/index.php?main_page=ind ex&cPath=67
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|