call ulab.numerical.std directly in timeit
New times
```
Computing the RMS value of 100 numbers
traditional          :    5.188ms [result=3535.843611]
ulab, with ndarray, some implementation in python :    0.504ms [result=3535.853624]
ulab only, with list :    0.636ms [result=3535.854340]
ulab only, with ndarray :    0.121ms [result=3535.854340]
```
@@ -22,9 +22,6 @@ def normalized_rms_ulab(values):
samples_sum = ulab.numerical.sum(values * values)
return math.sqrt(samples_sum / len(values))
-def normalized_std_ulab(values):
- return ulab.numerical.std(values)
-
# Instead of using sensor data, we generate some data
# The amplitude is 5000 so the rms should be around 5000/1.414 = 3536
nums_list = [int(8000 + math.sin(i) * 5000) for i in range(100)]
@@ -41,5 +38,5 @@ def timeit(s, f, n=100):
print("Computing the RMS value of 100 numbers")
timeit("traditional", lambda: normalized_rms(nums_list))
timeit("ulab, with ndarray, some implementation in python", lambda: normalized_rms_ulab(nums_array))
-timeit("ulab only, with list", lambda: normalized_std_ulab(nums_list))
-timeit("ulab only, with ndarray", lambda: normalized_std_ulab(nums_array))
+timeit("ulab only, with list", lambda: ulab.numerical.std(nums_list))
+timeit("ulab only, with ndarray", lambda: ulab.numerical.std(nums_array))
