×
No results found.
Ooyala Skin SDK for iOS v4.44.0
🔎
Main Page
Modules
Classes
OOMovingAverage.h
1
//
2
// Copyright (c) 2016 Brightcove, Inc. All rights reserved.
3
//
4
5
#define MOVING_AVERAGE_WINDOW_SAMPLE_SIZE 10
6
11
@interface
OOMovingAverage
: NSObject <NSCopying>
12
@property
(nonatomic, readonly)
double
average
;
13
@property
(nonatomic, readonly)
long
long
count
;
14
-(void) mergeSample:(
double
)sample;
15
@end
OOMovingAverage::count
long long count
Definition:
OOMovingAverage.h:13
OOMovingAverage
Keep a running average of the last N samples, where N is MOVING_AVERAGE_WINDOW_SAMPLE_SIZE.
Definition:
OOMovingAverage.h:11
OOMovingAverage::average
double average
Definition:
OOMovingAverage.h:12
Send Feedback