"Rune Allnor" <
[email protected]> wrote in message
news:
[email protected]...
On 28 Jan, 20:55, "Mikial Chubarov" <mikialchuba...@ieee.org> wrote:
> Hi Folks,
>
> I am collecting hours of data from multiple sensors at tens of kilo
> samples per second.
Gigs of data...?
> Eventually I'll want to correlate between pairs of
> sensors, and when I do, I'll do it through the freqeuncy domain (where for
> compatibilty with legacy code and CPU power I'll work with 1K, 2K, 4K or
> 8K
> blocks).
>
> But my question to you all originates with the time domain. As a thought
> experiement, if I was to cross correlate there would it make sense to A)
> do linear correlation, B) do cyclic correlation, or C) buffer incoming
> blocks and apply some sort of overlap and save calculation?
Those questions can't be answered unless you state what you
want to achieve by the analysis. Why do you correlate? What
are you looking for? How do the references look like? Like
in radar and sonar, one usually knows the pulse waveform
that was transmitted, and one looks for the same signal in
the recieved data.
Rune
**************
Right. Another way to frame the question is to ask: "over what time period
do you want to correlate?" If you correlate over the entire time period
then you wash out any short-term situations that may be of interest. If you
correlate with a relatively short sequence from A but over the entirety of
another sequence B then you may be wasting compute time because the
correlation opportunities cannot be so far apart as the computation would
suggest.
So, the general design is to pick a sequence length to use for correlation
and to pick a correlation span over which to compute the correlation (since
correlation implements a sliding multiply between the two sequences).
Once you have these parameters well in mind then you can better decide which
implementation is best for you.
- Linear correlation is easiest to code.
- Circular correlation is generally faster in execution. Sometimes much,
much faster!! It's relatively faster as the sequence lengths get bigger.
Fred