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

Home » Public Forums » archive » Re: Clsuter analysis wiht IDL
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: Re: Clsuter analysis wiht IDL [message #24014 is a reply to message #23847] Thu, 01 March 2001 03:20 Go to previous messageGo to previous message
dw is currently offline  dw
Messages: 10
Registered: February 2001
Junior Member
<html>
&lt;Craig writes:<br>
<br>
&lt;I am by no means a statistics or clusters analysis expert, but
from<br>
&lt;looking at the documentation it seems that both CLUST_WTS and
CLUSTER<br>
&lt;require the n-dimensional *positions* of the data points, and not
an<br>
&lt;intensity map.&nbsp; It is pretty clear that the cluster functions
are<br>
&lt;based on an unweighted set of scatter-points.&nbsp; If you want to
use your<br>
&lt;intensity information as a weighting, you may be out of luck.<br>
<br>
&lt;Perhaps you could achieve what you desire with this code, which
simply<br>
&lt;finds the non-zero pixels:<br>
<br>
wh = where(image GT 0, ct)<br>
if ct EQ 0 then message, 'ERROR: the image is blank!'<br>
x = wh MOD 658&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; form x pixel
positions<br>
y = floor(wh / 658) ; form y pixel positions<br>
<br>
xy = transpose([[x],[y]]) ; compute the 2-d scatter positions<br>
weights = clust_wts(xy, n_clusters=3)<br>
etc.<br>
<br>
&lt;I haven't tried this, so it may take some tweaking.&nbsp; Good
luck,<br>
&lt;Craig<br>
<br>
I'm such a beginner at this I don't know what the MOD function does? (no
on-line help listing for it)<br>
When trying to transpose, IDL corrects me with <br>
<font face="MS Sans Serif, Geneva" size=1>Arrays are allowed 1 - 8
dimensions<br>
<br>
thanks for trying to help!<br>
BTW I'm not a Mr. :-)<br>
D<br>
</font></html>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget_control from call_external
Next Topic: Plotting values in a map.

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

Current Time: Sat Oct 11 04:00:29 PDT 2025

Total time taken to generate the page: 1.28019 seconds