forum.alglib.net

ALGLIB forum
It is currently Sat Dec 21, 2024 11:35 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: problem with corrr1d
PostPosted: Thu Apr 21, 2011 4:50 am 
Offline

Joined: Thu Apr 21, 2011 3:43 am
Posts: 1
Hello. I can't understand how working this function and what is the result. I read description and have that mind:
data1 is first array of data is sin with frequency=1, data2 is second array is the same array. If I do correlation function whith this i must obtain some result that means thas the input arrays are equal?
i do this , for example:
Code:
corrr1d(data1, 10, data2, len(data2))

where len(data2)=80
the result is not any talking me about anything. if plot it a will see some sin with larger amplitude and some delay.

what i do wrong or may be i something don't understand?

p.s. не особо люблю выражаться на английском


Top
 Profile  
 
 Post subject: Re: problem with corrr1d
PostPosted: Thu Apr 21, 2011 12:29 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
Because it is cross-correlation, not statistical one. It returns vector of values, where each component of the vector is correlation of two function with one of them being shifted. As for your situation, correlation of sine with itself will be sine too.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group