Say I have an LTI system whose impulse response h[n] is:
$$ h[n] = \delta[n] + \delta[n-4] $$
I want to find the group delay of this system. I know the group delay ($grd$) is defined as: $$ grd = \frac{-d}{dw}(\angle H(e^{jw})) $$
So I get $\angle H(e^{jw}) = -4w$ and the $grd = 4$ but I believe this is incorrect.
For a more complicated example:
$$ h[n] = -\delta[n+1] + \delta[n] + 2*\delta[n-1] + 2*\delta[n-2] + \delta[n-3] - \delta[n-4] $$
What would my $\angle H(e^{jw})$ be? Thanks for helping me understand something fundamental that I am missing about group delay.