Friday, June 3, 2022

web app: sparse spike convolution

sparse spikes convolution

Sparse spike convolution model

Let a:THa : T\rightarrow H be a continuous function from a compact set TRdT\subset \mathbb{R}^d to the Hilbert space HH, e.g. L2(Ω)L^2(\Omega). An observation vector bHb\in H is said to be a sparse spike convolution of the discrete measure x=i=1nβiδtix = \sum_{i=1}^n \beta_i\delta_{t_i} if
b=i=1nβia(ti)=tTa(t)dx(t)=:Axb = \sum_{i=1}^n \beta_i a(t_i) = \int_{t\in T} a(t) \text{d} x(t)=: Ax
Here δt\delta_t denotes a spike (a.k.a. Dirac mass) located at tTt\in T. We may think of xx as a light sources with true location tit_i and amplitude βi\beta_i, and b=Axb=Ax as an acquisition image via a convolution kernel aa.

The following web application provides a visualization of above sparse spike convolution model. Click on the symbol > on the top left corner to modify the parameters. Here we consider T=[0,1]2R2T=[0,1]^2\subset \mathbb{R^2} and H=L2(T)H=L^2(T) and a(t)(z)=2zt2/w2a(t)(z) = 2^{-||z-t||^2/w^2} for all z,tTz, t\in T, i.e. the kernel aa is a shifted Gaussian-like function.

  • positions of spikes: t1,...,tnt_1, ..., t_n in TT
  • amplitudes of spikes: β1,...,βn\beta_1,..., \beta_n in R\mathbb R
  • half_width: ww

Links: blog post, github, streamlit web app

Popular Posts