noise

How to get rid of noise (redundant commas/dots) in decimal values – Python

How to get rid of noise (redundant commas/dots) in decimal values – Python Question: I have a dataset df with two columns ID and Value. Both are of Dtype "object". However, I would like to convert the column Value to Dtype "double" with a dot as decimal separator. The problem is that the values of …

Total answers: 1

Numpy 3D array max and min value

Numpy 3D array max and min value Question: I have Numpy 3d array that is just a list of gray images: images = np.zeros((xlen, height, width), dtype=int) for i in range (5): images[i] = cv2.imread(filename[i], cv2.IMREAD_GRAYSCALE) All the images are pretty the same but they all have some random noise pixels. My idea is that …

Total answers: 2

Noise reduction in time series keeping sharp edges

Noise reduction in time series keeping sharp edges Question: In a time series coming from a power meter there is noise from the process as well as from the sensor. To identify steps I want to filter the noise without sacrificing the steepness of the edges. The ideas was to do a rolling(window).mean() => kills …

Total answers: 2

How to add random white noise to data

How to add random white noise to data Question: Suppose I have a column of data whose value ranges from -1.23 to +2.56. What I want is to add 10% random white noise to my data. I’m not sure how to do it in python; please help me with the code. Asked By: Quamer Nasim …

Total answers: 1

How to use Kalman filter in Python for location data?

How to use Kalman filter in Python for location data? Question: [EDIT] The answer by @Claudio gives me a really good tip on how to filter out outliers. I do want to start using a Kalman filter on my data though. So I changed the example data below so that it has subtle variation noise …

Total answers: 2

Reducing noise on Data

Reducing noise on Data Question: I have 2 lists with data points in them. x = [“bunch of data points”] y = [“bunch of data points”] I’ve generated a graph using matplotlib in python import matplotlib.pyplot as plt plt.plot(x, y, linewidth=2, linestyle=”-“, c=”b”) plt.show() plt.close() Would I be able to reduce the noise on the …

Total answers: 4

Play simple beep with python without external library

Play simple beep with python without external library Question: Using only the modules that come with a standard python 2.6 installation, would it be possible to play a simple beeping noise? Asked By: a sandwhich || Source Answers: If you’re on a Unix terminal, you can print “a” to get a terminal bell: >>> def …

Total answers: 3