1

I suggested to someone that one can create a sinc filter that is ideal enough to be indistinguishable from the ideal, given certain limitations with the data in the first place.

Is that true?

It was only a suggestion yet it was met with unhelpfulness.

  • i understand that a sinc filter has some sort of mathematical existence - but how can that be so unless it can be applied to some data ? –  May 31 '15 at 07:50
  • Maybe you should post your comment as a port of the original answer? – jojeck May 31 '15 at 08:53
  • @jojek this is how i think of it... suppose we know the value of pi thru math proof etc., but our computers for some reason can only compute it to some finite amount. if i have a picture and want to draw a circle round it, i would only need the computer to approximate pi close enough to cope with the resolution. ?? –  May 31 '15 at 13:58

4 Answers4

3

An ideal system (such as a briwckwall filter) is the one which can be described theoretically (mathematically) but cannot be realized practically (physically).

The ideality of the sinc filter, aka the brickwall, results from its frequency-domain definition: an LTI low-pass filter with no ripples in the pass & stop bands and zero transition width.

Having this specification, an ideal lowpass filter, can be described mathematically, but cannot be realized using any practical techniques. One can find the impulse response of an ideal lowpass filter by using any suitable mathematical tools such as the the frequency to time-domain transformation of the given frequency reponse of the filter.

It results that an ideal low-pass filter has an impulse response in the form of a sinc(x) function, which extends from minus to plus infinity in time, a manifestation of its ideality.

Thus, when a sinc filter is to be implemented in practice, it can only be approximated; by truncatation in time for the sinc filter case. The approximation gets better as the length of the truncation increases which, however, is an undesired consequence.

Instead of forcing approximations to ideal sinc filters this way, it is practically more effective to use other techniques, such as weighted windowing, to realize those ideal filters, which follows the conversion of filter characteristics from those of the ideal one to that of the realizable one.

Fat32
  • 28,152
  • 3
  • 24
  • 50
  • hi Fat32 - is any ad hoc implementation always going to be identifiable - so if i block filter something below 200 hertz, can i really do so without leaving any trace of what was there for spying eyes ? –  May 31 '15 at 13:53
  • possibly not... I'm not sure but. – Fat32 May 31 '15 at 17:40
2

the "ideal" property of a $\operatorname{sinc}(\cdot)$ filter is in reference to its Fourier Transform

$$ \mathscr{F} \left\{ 2 f_0 \ \operatorname{sinc}(2 f_0 t) \right\} \ = \ \operatorname{rect}\left( \frac{f}{2f_0} \right) $$

where

$$ \operatorname{sinc}(x) \triangleq \begin{cases} \frac{\sin(\pi x)}{\pi x}, & \text{if }x \ne 0 \\ 1, & \text{if }x = 0 \end{cases} $$

and

$$ \operatorname{rect}(x) \triangleq \begin{cases} 1, & \text{if }|x|<\frac{1}{2} \\ 0, & \text{if }|x|>\frac{1}{2} \end{cases} $$

the $\operatorname{sinc}(\cdot)$ filter perfectly and totally excludes all frequency components above $f_0$ and perfectly and totally leaves all frequency components below $f_0$ unmolested. that's why it's ideal. it's an ideal (and impossible to attain) filtering operation.

robert bristow-johnson
  • 20,661
  • 4
  • 38
  • 76
  • 1
    I would have thought that the OP knows everything that you wrote down. However, you didn't actually answer the OP's question: whether it is possible to "create a sinc filter that is ideal enough to be indistinguishable from the ideal". – Matt L. Jun 01 '15 at 07:01
  • @MattL. please never over-estimate my intelligience haha –  Jun 02 '15 at 06:08
1

A sinc filter is unstable and not causal, so as such it can't be implemented. In discrete-time you can in principle approximate it arbitrarily closely by applying a (very long) window to the ideal filter impulse response, and shifting it such that it becomes causal. The latter will add a delay but it will not affect the magnitude response.

Matt L.
  • 89,963
  • 9
  • 79
  • 179
  • i think you mean by "causal" implementable in real time ? or, not.. ? –  May 31 '15 at 13:59
  • @user3293056: Exactly, it means that the current output sample only depends on the current and on past input samples, but not on future input samples. – Matt L. May 31 '15 at 14:43
  • i might agree that a sinc filter is acausal and unrealizable, but i have no idea what is meant by "A sinc filter is unstable ...". i don't think that stability has anything to do with a sinc filter. i've always thunk that stability is a property related to recursion (or feedback). is there some standard recursive theoretical implementation of a sinc filter? i am unaware of it, if there is. – robert bristow-johnson May 31 '15 at 22:29
  • How is a sinc filter unstable? – David May 31 '15 at 23:42
  • 1
    Since filter is unstable as mentioned by Matt L. For details please refer to http://dsp.stackexchange.com/questions/1032/is-ideal-lpf-bibo-unstable – Oliver Jun 01 '15 at 01:44
  • Sinc filter not "Since filter" in my previous comment... – Oliver Jun 01 '15 at 02:00
  • @robertbristow-johnson: The stability of an LTI system can be determined from its impulse response. Whether this impulse response can theoretically be implemented or not is totally irrelevant. If $\sum_n|h[n]|<\infty$ then the system is stable, otherwise it isn't. For a sinc filter, that sum doesn't converge, so it is unstable. – Matt L. Jun 01 '15 at 06:59
  • @David: It is unstable in the sense that it can produce an unbounded output signal for a bounded input signal. This comes from the fact that its impulse response is not absolutely summable. See also my other comment answering RBJ's comment. – Matt L. Jun 01 '15 at 09:41
  • well, semantically, i've always thought that the "BO" means "bounded output" and that meant that $\max\left{ |h[n]| \right}<\infty$. i seem to remember some textbooks calling a pole resting exactly on the unit circle as "stable" (which fails your semantic of "BO", @MattL.) and while i would not call such a pole "stable", i might call it "critically stable" or the term i would prefer "marginally stable". – robert bristow-johnson Jun 01 '15 at 16:36
  • @robertbristow-johnson: Even though "BO" obviously means "bounded output", that does NOT mean $\max{|h[n]|}<\infty$, but it means that $h[n]$ must be absolutely summable, as I've already mentioned. And I'm not sure why you mention poles; they have nothing to do with this discussion, because we're not talking about rational transfer functions. If we talk about (idealized) systems with transfer functions that are not rational, we have to look at the impulse response in order to deduce all system properties, such as stability, and for stability the $l_1$-norm must be finite. – Matt L. Jun 01 '15 at 17:38
  • @MattL.: BO "means that $h[n]$ must be absolutely summable..." the definition you're asserting does not appear to agree with Wikipedia nor this book using a cursory search. dunno what Oppenhiem and Schaffer say. i'll have to look it up. – robert bristow-johnson Jun 01 '15 at 18:14
  • @robertbristow-johnson: just a random reference (first slide). You can find it everywhere. I don't really believe that this is new to you, is it? – Matt L. Jun 01 '15 at 18:49
  • @robertbristow-johnson: ... and another one. – Matt L. Jun 01 '15 at 18:50
  • 3
    "I don't really believe that this is new to you, is it?" ... no, just a sloppy memory. having $\max \left{ |y[n]| \right} < \infty$ is not the same as $\max \left{ |h[n]| \right} < \infty$ . i stand (or sit) corrected. – robert bristow-johnson Jun 01 '15 at 20:00
0

If you mean that the filter impulse response is a sinc function, then you are talking about a function with infinite support, i.e, the length of the filter is infinite. This is impractical to implement, but you can approximate it by truncation. The longer the segment resulting from your truncation, the better the approximation.

Therefore, your statement is rather correct.