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

Home » Public Forums » archive » Re: Can I de-loop?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Can I de-loop? [message #16305 is a reply to message #16298] Thu, 15 July 1999 00:00 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
In article <7mje9s$263$1@nnrp1.deja.com>,
throop@colorado.edu wrote:>For instance, given
>
> A = [0,1,2]
> N = [2,2,2]
> K = 4
>
> I want the result A = [0,1,14], not A = [0,1,6]


I'll take this one guys (using the non-gender-specific meaning!).
Woohoo! My first "use histogram" posting!


A = [0,1,2]
N = [2,2,2]
n = n(sort(n)) ; you may need this, not sure of your application
K = 4

print,a
a =a+k*histogram(n,binsize=1,min=0,max=n_elements(a)-1)
print,a

This may not be general enough for your application, but
you get the idea. Always use histogram if possible.

Cheers,
bob




Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Too many users...
Next Topic: Boundary Finding (Edge Enhancement)

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

Current Time: Sat Oct 11 15:31:45 PDT 2025

Total time taken to generate the page: 0.48194 seconds