?? 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 + -