Fast numerical integration of \(\int_{[0,\:1)^d}\left|f_x(y)-g(y)\right|^p\:{\rm d}y\) for varying \(x\in[0,1)^d\)
Few votes (3) and no answers. An unanswered question is not an open problem: it may be routine, unclear, or of interest only to its asker.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
Let \(k\in\mathbb N\) and \(y_1,\ldots,y_k\in[0,1)^d\) with $$\frac1k\sum_{i=1}^kh(y_i)\approx\int_{[0,\:1)^d}h(y)\:{\rm d}y\tag1$$ for every nice enough function \(h:[0,1)^d\to\mathbb R\).
Now let \(p\ge1\), \(f_x:[0,1)^d\to[0,1)\) for \(x\in[0,1)^d\) and \(g:[0,1)^d\to[0,1)\). I need to compute the integral $$\int_{[0,\:1)^d}\left|f_x(y)-g(y)\right|^p\:{\rm d}y\approx\frac1k\sum_{i=1}^k\left|f_x(y_i)-g(y_i)\right|^p\tag2$$ for various \(x\in[0,1)^d\).
The problem is: For a given \(x\in[0,1)^d\), the "relevant support" of \(f_x\) is very small. Given a very small \(\varepsilon>0\), there is a small \(\delta(x)>0\) such that if \(y\in[0,1)^d\), then \(0\le f_x(y)<\varepsilon\) if and only if \(\|x-y\|<\delta(x)\).
I store each \(q(y_i)\) in an array; say \(q_i\). Now, since the "relevant support" of \(f_x\) is very small, the computation of \((2)\) is wasteful and it is expensive, since my \(k\) in practice is very large. …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.