Re: [BLACKBOX] Another LibVector question

From: [at]} <Wojtek>
Date: Sat, 28 Mar 2009 08:21:30 -0400

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

Robert:

   thanks a lot! I will read the bitmap docu and I will make a note
in a comment in the program. I will also update Lib. For now it
just works because I intentionally defined all my FIRs to be the same
length, even though some of my filters could be shorter. But I wanted
to avoid latency mismatch among the filters. If they are all the same,
then any latency or offset is the same too and the indices in the
*processed* waveforms can find one another. That's what I need...

I have been doing quite a different type of research lately and
now I have to get up to speed on this one asap. Hence I am rushing
to the result and skipping the theories.

My other research is summarized here. Please everyone take a look:

     http://www.picasaweb.com/WojtekSkulski

Cheers!

Wojtek


On Sat, 28 Mar 2009, Robert wrote:

> 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
>
>


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1303109147_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFJvYmVydDpccGFyDQpccGFyDQogICB0aGFua3Mg
YSBsb3QhIEkgd2lsbCByZWFkIHRoZSBiaXRtYXAgZG9jdSBhbmQgSSB3aWxsIG1ha2UgYSBub3Rl
XHBhcg0KaW4gYSBjb21tZW50IGluIHRoZSBwcm9ncmFtLiBJIHdpbGwgYWxzbyB1cGRhdGUgTGli
LiBGb3Igbm93IGl0XHBhcg0KanVzdCB3b3JrcyBiZWNhdXNlIEkgaW50ZW50aW9uYWxseSBkZWZp
bmVkIGFsbCBteSBGSVJzIHRvIGJlIHRoZSBzYW1lXHBhcg0KbGVuZ3RoLCBldmVuIHRob3VnaCBz
b21lIG9mIG15IGZpbHRlcnMgY291bGQgYmUgc2hvcnRlci4gQnV0IEkgd2FudGVkXHBhcg0KdG8g
YXZvaWQgbGF0ZW5jeSBtaXNtYXRjaCBhbW9uZyB0aGUgZmlsdGVycy4gSWYgdGhleSBhcmUgYWxs
IHRoZSBzYW1lLFxwYXINCnRoZW4gYW55IGxhdGVuY3kgb3Igb2Zmc2V0IGlzIHRoZSBzYW1lIHRv
byBhbmQgdGhlIGluZGljZXMgaW4gdGhlIFxwYXINCipwcm9jZXNzZWQqI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NFUlZATElT
VFMuT0J9fQAuQ0g+DQpTZW5kZQ==
----boundary-LibPST-iamunique-1303109147_-_---
Received on Sat Mar 28 2009 - 13:21:30 UTC

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