about co-occurance matrix [message #60022] |
Sun, 27 April 2008 01:01  |
Magic.Zhou
Messages: 16 Registered: April 2008
|
Junior Member |
|
|
is there anyone who can give me some idea about how to program a
256*256 co-occurance matrix? mine takes quite a long time, and now it
is still working......probably it is wrong:(
thank you!
|
|
|
Re: about co-occurance matrix [message #60133 is a reply to message #60022] |
Mon, 28 April 2008 11:49  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Bob Crawford writes:
> Mightn't that be because it's actually spelt "co-occurrence"?
> (occurrence - 2 "c"s, 2 "r"s, 2"e"s).
Yeah, it's probably smarter than me. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: about co-occurance matrix [message #60135 is a reply to message #60022] |
Mon, 28 April 2008 11:48  |
Bob[3]
Messages: 60 Registered: December 2006
|
Member |
|
|
On Apr 27, 11:10 pm, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> Humm, my spell checker doesn't like "occurrence"
>> even when I tell it to back off. :-(
>
> This is SO weird!! I'll have to send the damn word
> as a byte array:
>
> 99 111 45 111 99 99 117 114 97 110 99 101
> c o - o c c u r a n c e
>
> Never had that happen before!
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Mightn't that be because it's actually spelt "co-occurrence"?
(occurrence - 2 "c"s, 2 "r"s, 2"e"s).
|
|
|
Re: about co-occurance matrix [message #60152 is a reply to message #60022] |
Sun, 27 April 2008 20:10  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Humm, my spell checker doesn't like "occurrence"
> even when I tell it to back off. :-(
This is SO weird!! I'll have to send the damn word
as a byte array:
99 111 45 111 99 99 117 114 97 110 99 101
c o - o c c u r a n c e
Never had that happen before!
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: about co-occurance matrix [message #60153 is a reply to message #60022] |
Sun, 27 April 2008 20:03  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Well, given this definition of a occurrence matrix:
Humm, my spell checker doesn't like "occurrence"
even when I tell it to back off. :-(
Sorry,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
Re: about co-occurance matrix [message #60156 is a reply to message #60022] |
Sun, 27 April 2008 19:34  |
Magic.Zhou
Messages: 16 Registered: April 2008
|
Junior Member |
|
|
On 4月27日, 下午6时01分, Magic.Z...@gmail.com wrote:
> is there anyone who can give me some idea about how to program a
> 256*256 co-occurance matrix? mine takes quite a long time, and now it
> is still working......probably it is wrong:(
> thank you!
this is mine, one matrix total 4 matrix
;matrix_04::(i+1,j-1)<-->(i,j)
;point=0
;for i=0,x-1 do begin
; for j=0,x-1 do begin
; for k=0,x-2 do begin
; matrix_tmp_00=Oimage(*,k)
; matrix_tmp_01=Oimage(*,k+1)
; matrix_search=where(matrix_tmp_00 eq j)
; tag=n_elements(matrix_search)
; for l=0,tag-2 do begin
; if(matrix_search(l)-1 gt 0) then begin
; if((matrix_tmp_00(matrix_search(l)) eq
matrix_tmp_01(matrix_search(l)-1))) then begin
; point=point+1
; endif
; endif
; endfor
; endfor
; matrix_04(i,j)=point
; endf
|
|
|