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

Home » Public Forums » archive » Re: help on optimization
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: help on optimization [message #76683] Thu, 23 June 2011 08:19 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
I would approach this by:

1. Calculate the radius r.
2. Sort by radius.
3. Use TOTAL(/CUMULATIVE) to get the cumulative mass profile at each particle, in sorted radius order.
4. Use VALUE_LOCATE to find where in the radial-sorted-list-of-particles the endpoints of the bins are.
5. Subtract the cumulative total values at each bin edge to get the total mass in each bin, which you can compare directly to the cumulative mass to that point from the cumulative total.

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: help on optimization
Next Topic: New Graphics Reference Arrow

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

Current Time: Wed Oct 08 20:04:28 PDT 2025

Total time taken to generate the page: 0.00238 seconds