Statistic node with variable incoming data

Hello, is there a node to calculate the standard deviation and the mean with the option to change the length of the incoming data in the dashboard? I tried the node 'smooth' but it would only allow me to change the information in the node.

You could take a look at node-red-contrib-prib-functions