Skip to content

np_array.convolve returning Null #468

@dklein9500

Description

@dklein9500

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions