PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.SlidingWindowRateExtensions Class Reference

Provides convenience extensions for sliding windows. More...

Static Public Member Functions

static decimal CurrentRate (this ISlidingWindow< int > window)
 The rate of items per minute, where each integer value N represents N items, relative to the current time.
static decimal CurrentRate (this ISlidingWindow< int > window, TimeSpan periodSize)
 The rate of items per provided period size, where each integer value N represents N items, relative to the current time.
static decimal CurrentRate (this ISlidingWindow< long > window)
 The rate of items per minute, where each long value N represents N items, relative to the current time.
static decimal CurrentRate (this ISlidingWindow< long > window, TimeSpan periodSize)
 The rate of items per provided period size, where each long value N represents N items, relative to the current time.
static decimal CurrentRate (this ISlidingWindow< decimal > window)
 The rate of items per minute, where each decimal value N represents N items, relative to the current time.
static decimal CurrentRate (this ISlidingWindow< decimal > window, TimeSpan periodSize)
 The rate of items per provided period size, where each decimal value N represents N items, relative to the current time.
static decimal CurrentRate (this ISlidingWindow< double > window)
 The rate of items per minute, where each double value N represents N items, relative to the current time.
static decimal CurrentRate (this ISlidingWindow< double > window, TimeSpan periodSize)
 The rate of items per provided period size, where each double value N represents N items, relative to the current time.

Detailed Description

Provides convenience extensions for sliding windows.

Member Function Documentation

◆ CurrentRate() [1/8]

decimal PeanutButter.Utils.SlidingWindowRateExtensions.CurrentRate ( this ISlidingWindow< decimal > window)
static

The rate of items per minute, where each decimal value N represents N items, relative to the current time.

Parameters
window
Returns

◆ CurrentRate() [2/8]

decimal PeanutButter.Utils.SlidingWindowRateExtensions.CurrentRate ( this ISlidingWindow< decimal > window,
TimeSpan periodSize )
static

The rate of items per provided period size, where each decimal value N represents N items, relative to the current time.

Parameters
window
periodSize
Returns

◆ CurrentRate() [3/8]

decimal PeanutButter.Utils.SlidingWindowRateExtensions.CurrentRate ( this ISlidingWindow< double > window)
static

The rate of items per minute, where each double value N represents N items, relative to the current time.

Parameters
window
Returns

◆ CurrentRate() [4/8]

decimal PeanutButter.Utils.SlidingWindowRateExtensions.CurrentRate ( this ISlidingWindow< double > window,
TimeSpan periodSize )
static

The rate of items per provided period size, where each double value N represents N items, relative to the current time.

Parameters
window
periodSize
Returns

◆ CurrentRate() [5/8]

decimal PeanutButter.Utils.SlidingWindowRateExtensions.CurrentRate ( this ISlidingWindow< int > window)
static

The rate of items per minute, where each integer value N represents N items, relative to the current time.

Parameters
window
Returns

◆ CurrentRate() [6/8]

decimal PeanutButter.Utils.SlidingWindowRateExtensions.CurrentRate ( this ISlidingWindow< int > window,
TimeSpan periodSize )
static

The rate of items per provided period size, where each integer value N represents N items, relative to the current time.

Parameters
window
periodSize
Returns

◆ CurrentRate() [7/8]

decimal PeanutButter.Utils.SlidingWindowRateExtensions.CurrentRate ( this ISlidingWindow< long > window)
static

The rate of items per minute, where each long value N represents N items, relative to the current time.

Parameters
window
Returns

◆ CurrentRate() [8/8]

decimal PeanutButter.Utils.SlidingWindowRateExtensions.CurrentRate ( this ISlidingWindow< long > window,
TimeSpan periodSize )
static

The rate of items per provided period size, where each long value N represents N items, relative to the current time.

Parameters
window
periodSize
Returns

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.Utils/SlidingWindowRateExtensions.cs