[BLACKBOX] LibVector question

From: [at]} <Wojtek>
Date: Wed, 25 Mar 2009 17:57:37 -0400

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

Robert:

   after a break I am back to using Lib for a small but important
project. I need to apply custom digital filters to waveform digitizer
data. I prefer not to use Filters because Filters look like
overkill. I thought of coding from scratch, but before I started
I fortunately looked at LibVectors. Both the convolution and the
correlation are there, so I can use LibVectors and on that occasion
brush up my knowledge concerning LibPlotters etc.

Before I start, I have a couple silly questions.

1. Is it advisable to upgrade Lib now to the new revision?
   The one I have on disk is a few years old.

2. Which function would you advise to digitally filter a waveform
   with a filter? (Waveform has 1k samples, the filter has about
   40 coefficients.)

    res := Corr (waveform, filter);
    res := Conv (waveform, filter);

Why are there two functions anyway? The math seems almost the same
except for indexing. What is the reason for the two indexing schemes?

Thank you,

Wojtek


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1900885991_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFJvYmVydDpccGFyDQpccGFyDQogICBhZnRlciBh
IGJyZWFrIEkgYW0gYmFjayB0byB1c2luZyBMaWIgZm9yIGEgc21hbGwgYnV0IGltcG9ydGFudFxw
YXINCnByb2plY3QuIEkgbmVl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pO1xwYXINCiAgICByZXMgOj0gQ29udiAod2F2ZWZvcm0sIGZpbHRlcik7XHBhcg0K
XHBhcg0KV2h5IGFyZSB0aGVyZSB0d28gZnVuY3Rpb25zIGFueXdheT8gVGhlIG1hdGggc2VlbXMg
YWxtb3N0IHRoZSBzYW1lXHBhcg0KZXhjZXB0IGZvciBpbmRleGluZy4gV2hhdCBpcyB0aGUgcmVh
c29uIGZvciB0aGUgdHdvIGluZGV4aW5nIHNjaGVtZXM/XHBhcg0KXHBhcg0KVGhhbmsgeW91LFxw
YXINClxwYXINCldvanRla1xwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmli
ZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VS
VkBMSVNUUy5PQkVST04uQ0h9fQAA3QEP
----boundary-LibPST-iamunique-1900885991_-_---
Received on Wed Mar 25 2009 - 22:57:37 UTC

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