Questions tagged [numpy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
1k views

How to generate random samples of Gaussian distribution directly in the frequency domain?

One can easily draw (pseudo-)random samples from a normal (Gaussian) distribution by using, say, NumPy: ...
2
votes
1answer
90 views

How to get an interpolation weight from a mathematical definition

It was recently explained to me that a "Nearest neighbor" kernel for 1D interpolation can be implemented like this using NumPy ...