Changelog
All notable changes to Vali-Bucket are documented here. Follows Keep a Changelog and Semantic Versioning.
[1.0.0] — New package
Added
IValiBucket.Bucketize— groups raw timestamps into fixed-size, anchor-aligned buckets, counting how many fall in each.IValiBucket.Aggregate<T>— groups(timestamp, value)pairs into buckets, combining values per bucket viaBucketAggregation(Sum,Average,Count,Min,Max).IValiBucket.GetBucketFor— O(1) lookup of the bucket a single timestamp belongs to, without bucketizing a whole collection.BucketSize(decimal Amount, TimeUnit Unit)— fixed-length bucket size (MillisecondsthroughWeeks);Months/YearsthrowArgumentOutOfRangeException.TimeBucket/TimeBucket<T>— the bucket'sDateRangeplusCount(andValuefor the aggregated overload).AddValiBucket()extension method forIServiceCollectionDI registration.- Reuses
Vali-Range'sDateRangefor each bucket's time span.