📄 samples.h
字号:
/* $Id: samples.h,v 1.2 2006-08-09 15:20:54 jonathan Exp $ * Jonathan Ledlie, Harvard University. * Copyright 2005. All rights reserved. */#ifndef SAMPLES_H#define SAMPLES_H#include <deque>#include "point.h"extern int PING_HISTORY_COUNT;extern double PING_SAMPLE_PERCENTILE;extern int MIN_HISTORY_COUNT;class Samples { friend ostream& operator << (ostream& os, Samples *s); public: double ewma; //double previousSample; int jitterCount; int stamp; double weightedError; Point *vec; Point *appVector; deque<double> samples; Samples(); ~Samples(); double getSample (); void addSample (double sample, int myId, int yourId, Point *yourCoord, double yourWeightedError, Point *yourAppCoord, int stamp); void print ();};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -