FMLiveSwitchRollingWindow Class Reference

Instance Methods

(void) - add:
 
(int) - average
 
(int) - count
 
(NSString *) - description
 
(instancetype) - initWithWindowSize:
 
(bool) - isStableWithThreshold:
 
(bool) - isTrendingDownWithThreshold:
 
(bool) - isTrendingUpWithThreshold:
 
(int) - lastValue
 
(int) - maximum
 
(int) - minimum
 
(int) - range
 
(int) - standardDeviation
 
(long long) - sum
 
(long long) - sumOfSquares
 
(long long) - sumX
 
(long long) - sumXx
 
(long long) - sumXy
 
(float) - trendSlope
 

Class Methods

(FMLiveSwitchRollingWindow *) + rollingWindowWithWindowSize:
 

Method Documentation

◆ add:

- (void) add: (int)  value

◆ average

- (int) average

◆ count

- (int) count

◆ description

- (NSString*) description

◆ initWithWindowSize:

- (instancetype) initWithWindowSize: (int)  windowSize

◆ isStableWithThreshold:

- (bool) isStableWithThreshold: (float)  threshold

◆ isTrendingDownWithThreshold:

- (bool) isTrendingDownWithThreshold: (float)  threshold

◆ isTrendingUpWithThreshold:

- (bool) isTrendingUpWithThreshold: (float)  threshold

◆ lastValue

- (int) lastValue

◆ maximum

- (int) maximum

◆ minimum

- (int) minimum

◆ range

- (int) range

◆ rollingWindowWithWindowSize:

+ (FMLiveSwitchRollingWindow*) rollingWindowWithWindowSize: (int)  windowSize

◆ standardDeviation

- (int) standardDeviation

◆ sum

- (long long) sum

◆ sumOfSquares

- (long long) sumOfSquares

◆ sumX

- (long long) sumX

◆ sumXx

- (long long) sumXx

◆ sumXy

- (long long) sumXy

◆ trendSlope

- (float) trendSlope