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

Home » Public Forums » archive » Simple question in IDL, looking for solution, thank you
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Simple question in IDL, looking for solution, thank you [message #81769] Mon, 22 October 2012 00:07 Go to previous message
Danxia is currently offline  Danxia
Messages: 10
Registered: September 2012
Junior Member
Dear all, please see my questions as described below and let me know if you have any solution.
For example, my array [arr] =
5 2 3
1 8 3
1 2 3
There's another array [bcg], which is the occurrence times of each unique element in array [arr]
[bcg] =
1 2 3
2 1 4
2 3 5
How can I get the total occurrence frequencies of sorted elements in [arr] as indicated in [bcg], like:(2+2) (2+3) (3+4+5) (0) (1) (0) (0) (1)
which is equal to 4 5 12 0 1 0 0 1, meaning 4 times of 1, 5 times of 2, 12 times of 3, 0 times of 4, 1 times of 5, 0 of 6, 0 of 7 and 1 of 8.

I appreciate your any replied. Thanks.

Danxia
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: cgHistoplot and multiplot
Next Topic: Semi-Transparent Images

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

Current Time: Wed Oct 08 17:38:41 PDT 2025

Total time taken to generate the page: 0.00466 seconds