⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 math_util.h

📁 这是关于覆盖网的各种负载均衡算法的程序。好好研究
💻 H
字号:
/* $Id: math_util.h,v 1.6 2005/08/02 19:35:49 jonathan Exp $ * Jonathan Ledlie, Harvard University. * Copyright 2005.  All rights reserved. */#ifndef MATH_UTIL_H#define MATH_UTIL_H//#include <sunmath.h>#include <vector>#include <math.h>using namespace::std;#define Long long long//#define drand48() ((double)rand()/RAND_MAX)#define Rand() drand48()#define SRand(c) srand48(c)#define ABS(x) ((x > 0) ? x : -1*x)double randPct ();int poisson (int mean);double poisson (double mean);int unifRand (int a, int b);double mean (vector<double> v);double stddev (vector<double> v, double mean);double square (double x);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -