|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Custom Mo policy: sum of squared packet sizes in a window. More...
Public Types | |
| using | answer_type = long long |
Public Member Functions | |
| void | init (const Array< int > &, size_t) |
| void | add (const Array< int > &data, size_t idx) |
| void | remove (const Array< int > &data, size_t idx) |
| answer_type | answer () const |
Public Attributes | |
| long long | sum_sq = 0 |
Custom Mo policy: sum of squared packet sizes in a window.
Definition at line 222 of file mo_algorithm_example.cc.
Definition at line 224 of file mo_algorithm_example.cc.
Definition at line 230 of file mo_algorithm_example.cc.
References sum_sq.
|
inline |
Definition at line 242 of file mo_algorithm_example.cc.
References sum_sq.
Definition at line 228 of file mo_algorithm_example.cc.
References sum_sq.
Definition at line 236 of file mo_algorithm_example.cc.
References sum_sq.