Lines Matching refs:bucket
50 // Adds a bucket for the given bucketNum (index starting at 0).
51 // If a bucket for bucketNum already exists, it will be replaced.
54 void addPastBucket(std::shared_ptr<DimToValMap> bucket, const int64_t& bucketNum);
56 // Inserts (or replaces) the bucket entry for the given bucketNum at the given key to be the
57 // given bucketValue. If the bucket does not exist, it will be created.
64 // represents the partially-filled current bucket), an anomaly has happened.
73 // represents the partially-filled current bucket), an anomaly has happened, and if so,
84 // Returns the sum of all past bucket values for the given dimension key.
87 // Returns the value for a past bucket, or 0 if that bucket doesn't exist.
133 // for the anomaly detection (since the current bucket is not in the past).
137 // mPastBuckets[i] can be null, meaning that no data is present in that bucket.
144 // The bucket number of the last added bucket.
158 // Add the information in the given bucket to mSumOverPastBuckets.
159 void addBucketToSum(const shared_ptr<DimToValMap>& bucket);
161 // Subtract the information in the given bucket from mSumOverPastBuckets
163 void subtractBucketFromSum(const shared_ptr<DimToValMap>& bucket);
171 // Calculates the corresponding bucket index within the circular array.
175 // Resets all bucket data. For use when all the data gets stale.