The Arduino can do only one thing at a time: e.g. collect a single data point, or process it, or store it.
If you already have a structure that contains all the information relevant to a particular sensor, then you can pass the address of that structure to a general function that performs a smoothing operation, independent of sensor number.
There is no need to complicate the situation by making a special function that anticipates some number of sensors.
Furthermore, there are many different types of smoothing or low pass filter operations. You can pass the same data structure to different functions and decide which is operation is most suitable.