comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Dimension Keywords
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Dimension Keywords [message #86450] Mon, 11 November 2013 01:58 Go to next message
fd_luni is currently offline  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 #86451 is a reply to message #86450] Mon, 11 November 2013 07:24 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
fd_luni@mail.com writes:

> 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?

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

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.")
Re: Dimension Keywords [message #86452 is a reply to message #86451] Mon, 11 November 2013 07:27 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
Re: Dimension Keywords [message #92720 is a reply to message #86452] Tue, 16 February 2016 21:23 Go to previous message
JP is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL moment command problems
Next Topic: IDE internal error

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:10:57 PDT 2025

Total time taken to generate the page: 0.00634 seconds