# Tag Info

Accepted

### Does Mathematica reuse previous computations?

Here I implemented three different versions of Gaussian filtering (for periodic data). It took me a while to adjust the constants and still some of them might be wrong. Prepare the Gaussian kernel <...
Accepted

### Can I use ListDeconvolve or any other functions to get the original kernel?

In this case, the following works just fine: LeastSquares[ Transpose@Through[{RotateLeft, Identity, RotateRight}[data1]], conv ] {0.333333, 0.333333, 0....
Accepted

### Dilation on 3D Images?

Unfortunately, MXNet does not support 3D convolutions with dilations yet. This can be seen in the MXNet source for convolution.
• 3,479
Accepted

### How does DirichletConvolve relate to Dirichlet convolution?

Consider the following code f[n_, p_] := n^p g[n_, p_] := n*p DirichletConvolve[f[n, p], g[n, p], n, 4] First, we define two functions ...
• 580
Accepted

### Incorrect evaluation of a convolution

That does not explain why your solution does not work (I'm pretty sure it is because of your definition of stripe), but if you replace ...
• 14.4k
Accepted

### Analog of MATLAB's conv2 in Mathematica?

Not sure if I've guessed definition of conv2 accurately, but the following does reproduce the output of MATLAB. (Tested in Octave. ) ...
• 67.6k

### Why does ImageDeconvolve not restore this image?

The answer is that you are asking too much of deconvolution. The following code shows images blurred and refocused with different degrees of blurring. ...
• 16.8k

### Convolution of Gaussian and Lorentzian functions

It seems, that MMA can't do that integral analytically (working with Version 8.0). Also Convolvedidn't do the job. Do it numerically. By the way, don't use ...
• 17.3k
Accepted

### NetEncoder for images of "Varying" dimension?

Automatic is not the same as "Varying". Example 1 This works: ...
• 9,611
Accepted

### Rewrite the power sum in terms of convolution

Let's focus on the part that is giving you trouble: the term $\sum_{k=0}^{m-1}k^t(m-k)^t$, which is written in code as: Sum[k^t (m - k)^t, {k, 0, m - 1}] For ...
• 69.5k

### Does Mathematica reuse previous computations?

It's hard to know for sure, but one way to test for caching is to apply a single command to lots of data sets, or to apply the command separately to each set. For instance: ...
• 69.5k

...
• 161k
Accepted

### Speeding a Manipulate illustrating convolution

As pointed by Nasser in comment above, Convolve is having difficulty in handling certain combination of f and ...
• 67.6k
Accepted

### Using Convolve and Manipulate

First, you need to define the convolution of the two functions. Then plot it: ...
• 69.5k
Accepted

...
• 67.6k
Accepted

### Symbolic Evaluation of Convolve Between DiracDeltas Where the Variable Appears In a Sqrt

To evaluate the convolution you need the transformation rule ( see wikipedia ) ...
• 55.5k

### Incorrect evaluation of a convolution

With x and d not numeric: If[EvenQ[Quotient[x, d]], 1, 0] (* 0 *) The essential ...
• 13.9k
Accepted

### Coefficients of Knuth's "Convolution Polynomials"

As Michael notes, deleting the stray brackets will make it work. A better method, however, would be to use SolveAlways[]: ...

### Speedup ListCorrelation when using generalized correlation function

... 3 years later at least for 2D problems: ImageCorrelate[pData//Image, krData, CosineDistance]//ImageData
• 861

### Can I use ListDeconvolve or any other functions to get the original kernel?

This is a bit roundabout but one can treat this as a polynomial algebra problem. First pad both ends of data and convolution result with zeros so that the convolution emulates polynomial ...
• 59.9k

### Convolution and cross-correlation of two discrete signals

Define a Gaussian kernel. The width is specified by s kernel = #2 Exp[-(t - #1)^2/(2 s^2)] &; Define a function to compute ...
• 16.8k

### How do I implement convolution integrals symbolically (not numerically)?

On second thought, I don't think your approach to calculating the convolution is mathematically sound. The Wiki page, and the MathWorld page it references, both state that "the integral of a ...
• 67.6k
Accepted

### Multiple discrete RV convolutions performance

Probability generating functions might be the way to go. Here's the pgf (probability generating function) of a single random variable: ...
• 42.3k
Accepted

### single slit diffraction numerical simulation

I believe that the problem is the Nyquist limit. You are representing the slit as sampled array of zeros and ones. The bandwidth of the edge is infinite so at any sample interval you will be ...
• 16.8k

### The curious case of Convolve function

I don't know why Mathematica returns the incorrect result, but it may be helpful to have the correct result so as to find the origin of the bug. To find the correct result, one may generate the first ...
Accepted

### ListConvolve returns only one value

You need to tell ListConvolve how to handle "end conditions". Since your sequences are about the same length, everything is an end condition. Hence: ...
• 69.5k

### Infinite long sequence convolution error

When using 2 instead of b, Mathematica can use the fact that 2>0. So, you can get the simplification you want by adding the ...
• 131k

### Can I use ListDeconvolve or any other functions to get the original kernel?

To approximate ker using ListDeconvolve, use data1 as the kernel. Increasing ...
• 161k
Accepted

### Numerically convolve lists in mathematica

Both your HannWindowand $\chi$ function are Indeterminate at $x=0$ so I created a function that uses the Limit at $x=0$ or I ...
• 16.4k