samples.h
来自「题描述的是一个旅行商要到几个城市去」· C头文件 代码 · 共 38 行
H
38 行
/* $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 + =
减小字号Ctrl + -
显示快捷键?