how to obtain the TSA standard deviation?
Show older comments
I am performing a TSA of a measurement of a rotating square bar at 500 rpm for 45 revolutions. the problem, as you can see in the picture, is that there is a noticeable deviation (calculated by iterations and visual inspection i found that the best average speed is 499.508 rpm). i would like to automatize this process by minimizing the std of the TSA but i am unable to find any option to obtain this information.

1 Comment
Meg Noah
on 5 Aug 2025
I think what you might need is called 'Welford’s method'. Conceptualized by B. P. Welford and published widely by Knuth in The Art of Computer Programming (Volume 2, Seminumerical Algorithms, 3rd edn., p. 232.).
Take a look at: https://www.geeksforgeeks.org/web-tech/expression-for-mean-and-variance-in-a-running-stream/
where:




Accepted Answer
More Answers (0)
Categories
Find more on Spectral Estimation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

