samples.h
来自「经网络提出了一种基于蚁群聚类算法的径向基神经网络. 利用蚁群算法的并行寻优特征和」· C头文件 代码 · 共 39 行
H
39 行
/* $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 + -
显示快捷键?