[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eExponentialMovingAverage\u003c/code\u003e class manages exponential moving averages using a decaying factor.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to add data, retrieve the current average, and get the total number of records.\u003c/p\u003e\n"],["\u003cp\u003eThe formula for calculating the new average is: \u003ccode\u003enew_average = decaying_factor * old_average + (1 - decaying_factor) * new_record\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe decaying factor should be between 0 and 1 (exclusive).\u003c/p\u003e\n"]]],["The `ExponentialMovingAverage` class in C++ calculates moving averages using a decaying factor. It offers methods to `AddData` (a new record), retrieve the `CurrentAverage`, and query the `NumRecords` (total data points added). The constructor `ExponentialMovingAverage` takes a `decaying_factor` (between 0 and 1) as input. The moving average is updated as `new_average = decaying_factor * old_average + (1 - decaying_factor) * new_record`.\n"],null,[]]