Hi,
I am using this function to smooth some measurement data, sadly it returns null for some reason.
Here is the example code that produced the same result:
int filter_length = 5;
List<double> data = new List<double>() {1, 34, 3, 4, 22, 4, 24, 42, 24, 22, 4 }; // Just some random numbers for testing
var array = data.ToArray();
NDArray np_array = new NDArray(array);
var filter = np.ones(filterLength);
NDArray filtered_array = np_array.convolve(filter, "same"); // Here null is returned
There is probably a better way to construct the NDArray, but I think the code should still work.
What am I doing wrong?
Thanks in advance!
Hi,
I am using this function to smooth some measurement data, sadly it returns null for some reason.
Here is the example code that produced the same result:
There is probably a better way to construct the NDArray, but I think the code should still work.
What am I doing wrong?
Thanks in advance!