๐ Count
Returns the number of data points pushed in the array.
This is an alias for the inherited
point_count()
method from DataTomeMvAvg.
Click here to read about the ๐ Point Count method.
๐ Syntaxโ
size_t count() { return this->point_count(); }
๐ฎ Exampleโ
DataTomeMvAvg<int> intAverage(10);
intAverage.push(2);
intAverage.count(); // Will return 1
intAverage.push(5);
intAverage.count(); // Will return 2
โฑ Complexityโ
Constant (O(1)).