1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef RTC_TOOLS_FRAME_ANALYZER_LINEAR_LEAST_SQUARES_H_
- #define RTC_TOOLS_FRAME_ANALYZER_LINEAR_LEAST_SQUARES_H_
- #include <stdint.h>
- #include <valarray>
- #include <vector>
- #include "absl/types/optional.h"
- namespace webrtc {
- namespace test {
- class IncrementalLinearLeastSquares {
- public:
- IncrementalLinearLeastSquares();
- ~IncrementalLinearLeastSquares();
-
-
- void AddObservations(const std::vector<std::vector<uint8_t>>& x,
- const std::vector<std::vector<uint8_t>>& y);
-
-
- std::vector<std::vector<double>> GetBestSolution() const;
- private:
-
- absl::optional<std::valarray<std::valarray<uint64_t>>> sum_xx;
-
- absl::optional<std::valarray<std::valarray<uint64_t>>> sum_xy;
- };
- }
- }
- #endif
|