Re: [BLACKBOX] Another LibVector question

From: [at]} <Robert>
Date: Sat, 28 Mar 2009 09:49:08 +0000

----boundary-LibPST-iamunique-1769054787_-_-
Content-type: text/plain

Wojtek Skulski wrote:
> It is truly confusing. The correlator adds its latency to the correlated
> waveform. The latency is equal to 1/2 the FIR length. But the Conv
> function adds the correlator length to the correlated wave.
>
> All the indices are now mismatched with respect to the original
> feature in the ADC waveform.

 > It is confusing at best. Any comments why it should be so?


Read the Docu extract I sent as a bitmap (*carefully*)!

(The extract was for Complex, for Real just ignore the Conjugations.)

The Docu explains how much the 'Correlation' output is offset, and why.

The 'Convolution' output is not offset.

Since, in your case, both functions return the same numbers these comments may
seem contradictory, but they are different functions with different meanings and
different purposes. Confusion, I contend, is generated by mentally mixing them.


If you want to eliminate the 'Filter settling times' then do:

z := Vec.Conv (x, h);
z := Vec.Take (LEN (x), Vec.Loose (ASH (LEN (h), -1), z));

This will line up z with x if the length of the filter h is odd. If it is even,
bad luck!, but you will be within half a sample.


Sometimes one wants the settling time data, sometimes one does not. If the
library function removed it you would not be able put it back when you wanted
to. This way you have the option.

Cheers

Robert


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1769054787_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMz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ClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBi
b2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQAAAAAA
----boundary-LibPST-iamunique-1769054787_-_---
Received on Sat Mar 28 2009 - 10:49:08 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:48 UTC