This function calculates the average of a set of values that has a Mean Absolute Error less than a certain threshold. It could be used to detect a stable array of values once it arrives in steaming data. It uses a sliding window, calculating the mean absolute error after receiving each new value and stops when the MAE matches a threshold condition. If a certain number of values was received and none matched the condition, it finds the average of the window that showed the minimum Mean Absolute Error.
MS (2021). Detect a stable set of values in streaming data (https://github.com/MSH19/Streaming-detect-stable), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!