I am trying to calculate the integral
$$ y(x)=\int^b_a dz\delta(x-w_z) $$
were $\delta$ is the dirac delta function, $a=-3$, $b=3$ and $w$ is a one-dimensional matrix such that for some values of $z$ there is an associated value of $w$.
I think this Integral is related to the Dirac measure.
DiracDelta
is used to represent some physical phenomenon. $\endgroup$In[32]:= Integrate[UnitBox[(z - 3 - eps^2/2)/eps]/eps, {z, -3, 3}, Assumptions -> eps > 0 && eps < 1] Out[32]= 3/8
Yet this is a perfectly fine approximation (aseps->0
from above) to a delta function centered at 3. $\endgroup$DiracDelta
is profoundly useful. $\endgroup$