亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? newran.h

?? 此程序為wcdma系統當中ftp/video業務模型的c++程序仿真 通過此程序 能得到此兩種業務在多種條件下的吞吐量和無碼率的性能
?? H
?? 第 1 頁 / 共 2 頁
字號:
// newran.h ------------------------------------------------------------

// NEWRAN02

#ifndef NEWRAN_LIB
#define NEWRAN_LIB 0

//******************* utilities and definitions *************************

#include "include.h"
#include "boolean.h"
#include "myexcept.h"
#include "extreal.h"

#ifdef use_namespace
namespace NEWRAN { using namespace RBD_COMMON; }
namespace RBD_LIBRARIES { using namespace NEWRAN; }
namespace NEWRAN {
#endif

typedef Real (*PDF)(Real);                // probability density function

Real ln_gamma(Real);                      // log gamma function

//**************** uniform random number generator **********************

class RepeatedRandom;
class SelectedRandom;

class Random                              // uniform random number generator
{
   static double seed;                    // seed
   //static unsigned long iseed;          // for Mother
   static Real Buffer[128];               // for mixing random numbers
   static Real Raw();                     // unmixed random numbers
   void operator=(const Random&) {}       // private so can't access

public:
   static void Set(double s);             // set seed (0 < seed < 1)
   static double Get();                   // get seed
   virtual Real Next();                   // get new value
   virtual char* Name();                  // identification
   virtual Real Density(Real) const;      // used by PosGen & Asymgen
   Random() {}                            // do nothing
   virtual ~Random() {}                   // make destructors virtual
   SelectedRandom& operator()(double);    // used by MixedRandom
   RepeatedRandom& operator()(int);       // for making combinations
   virtual ExtReal Mean() const { return 0.5; }
                                          // mean of distribution
   virtual ExtReal Variance() const { return 1.0/12.0; }
					  // variance of distribution
   virtual void tDelete() {}              // delete components of sum
   virtual int nelems() const { return 1; }
                                          // used by MixedRandom
   virtual void load(int*,Real*,Random**);
   friend class RandomPermutation;
};


//****************** uniform random number generator *********************

class Uniform : public Random
{
   void operator=(const Uniform&) {}      // private so can't access

public:
   char* Name();                          // identification
   Uniform() {}                           // set value
   Real Next() { return Random::Next(); }
   ExtReal Mean() const { return 0.5; }
   ExtReal Variance() const { return 1.0/12.0; }
   Real Density(Real x) const { return (x < 0.0 || x > 1.0) ? 0 : 1.0; }
};


//************************* return constant ******************************

class Constant : public Random
{
   void operator=(const Constant&) {}     // private so can't access
   Real value;                            // value to be returned

public:
   char* Name();                          // identification
   Constant(Real v) { value=v; }          // set value
   Real Next() { return value; }
   ExtReal Mean() const { return value; }
   ExtReal Variance() const { return 0.0; }
};

//**************** positive random number generator **********************

class PosGen : public Random              // generate positive rv
{
   void operator=(const PosGen&) {}       // private so can't access

protected:
   Real xi, *sx, *sfx;
   bool NotReady;
   void Build(bool);                      // called on first call to Next

public:
   char* Name();                          // identification
   PosGen();                              // constructor
   ~PosGen();                             // destructor
   Real Next();                           // to get a single new value
   ExtReal Mean() const { return (ExtReal)Missing; }
   ExtReal Variance() const { return (ExtReal)Missing; }
};

//
//**************** symmetric random number generator **********************

class SymGen : public PosGen              // generate symmetric rv
{
   void operator=(const SymGen&) {}       // private so can't access

public:
   char* Name();                          // identification
   Real Next();                           // to get a single new value
};

//**************** normal random number generator **********************

class Normal : public SymGen              // generate standard normal rv
{
   void operator=(const Normal&) {}       // private so can't access
   static Real Nxi, *Nsx, *Nsfx;          // so we need initialise only once
   static long count;                     // assume initialised to 0

public:
   char* Name();                          // identification
   Normal();
   ~Normal();
   Real Density(Real) const;              // normal density function
   ExtReal Mean() const { return 0.0; }
   ExtReal Variance() const { return 1.0; }
};

//*********** chi-square random number generator **********************

class ChiSq : public Random               // generate non-central chi-sq rv
{
   void operator=(const ChiSq&) {}        // private so can't access
   Random* c1;                            // pointers to generators
   Random* c2;                            // pointers to generators
   int version;                           // indicates method of generation
   Real mean, var;

public:
   char* Name();                          // identification
   ChiSq(int, Real=0.0);                  // df and non-centrality parameter
   ~ChiSq();
   ExtReal Mean() const { return mean; }
   ExtReal Variance() const { return var; }
   Real Next();
};

//**************** Cauchy random number generator **********************

class Cauchy : public SymGen              // generate standard cauchy rv
{
   void operator=(const Cauchy&) {}       // private so can't access

public:
   char* Name();                          // identification
   Real Density(Real) const;              // Cauchy density function
   ExtReal Mean() const { return Indefinite; }
   ExtReal Variance() const { return PlusInfinity; }
};

//**************** Exponential random number generator **********************

class Exponential : public PosGen         // generate standard exponential rv
{
   void operator=(const Exponential&) {}  // private so can't access

public:
   char* Name();                          // identification
   Real Density(Real) const;              // Exponential density function
   ExtReal Mean() const { return 1.0; }
   ExtReal Variance() const { return 1.0; }
};

//**************** asymmetric random number generator **********************

class AsymGen : public Random             // generate asymmetric rv
{
   void operator=(const AsymGen&) {}      // private so can't access
   Real xi, *sx, *sfx; int ic;
   bool NotReady;
   void Build();                          // called on first call to Next

protected:
   Real mode;

public:
   char* Name();                          // identification
   AsymGen(Real);                         // constructor (Real=mode)
   ~AsymGen();                            // destructor
   Real Next();                           // to get a single new value
   ExtReal Mean() const { return (ExtReal)Missing; }
   ExtReal Variance() const { return (ExtReal)Missing; }
};

//**************** Gamma random number generator **********************

class Gamma : public Random               // generate gamma rv
{
   void operator=(const Gamma&) {}        // private so can't access
   Random* method;

public:
   char* Name();                          // identification
   Gamma(Real);                           // constructor (Real=shape)
   ~Gamma() { delete method; }
   Real Next() { return method->Next(); }
   ExtReal Mean() const { return method->Mean(); }
   ExtReal Variance() const { return method->Variance(); }
};

//**************** Generators with pointers to pdf ***********************

class PosGenX : public PosGen
{
   void operator=(const PosGenX&) {}      // private so can't access
   PDF f;

public:
   char* Name();                          // identification
   PosGenX(PDF fx);
   Real Density(Real x) const { return (*f)(x); }
};

class SymGenX : public SymGen
{
   void operator=(const SymGenX&) {}      // private so can't access
   PDF f;

public:
   char* Name();                          // identification
   SymGenX(PDF fx);
   Real Density(Real x) const { return (*f)(x); }
};

class AsymGenX : public AsymGen
{
   void operator=(const AsymGenX&) {}     // private so can't access
   PDF f;

public:
   char* Name();                          // identification
   AsymGenX(PDF fx, Real mx);
   Real Density(Real x) const { return (*f)(x); }
};

//***************** Pareto random number generator ************************

class Pareto : public Random
// Use definition of Kotz and Johnson: "Continuous univariate distributions 1",
// chapter 19 with k = 1.
{
   void operator=(const Pareto&) {}       // private so can't access
   Real Shape,Scale,RS;

public:
   char* Name();                          // identification
   Pareto(Real shape,Real scale);                    // constructor (Real=shape)
   ~Pareto() {}
   Real Next();
   ExtReal Mean() const;
   ExtReal Variance() const;
};
//***************Geometry Distribution Generator**************************
class Geometry : public Random
{
	Real p,mean,var;
public:
	char* Name();                          // identification
	Geometry(Real);                // constructor
	int iNext();                           // new single value
	ExtReal Mean() const { return mean; }
	ExtReal Variance() const { return var; }
};

//**************** discrete random number generator **********************

class DiscreteGen : public Random         // discrete random generator
{
   void operator=(const DiscreteGen&) {}  // private so can't access
   Real *p; int *ialt; int n; Real *val;
   void Gen(int, Real*);                  // called by constructors
   Real mean, var;                        // calculated by the constructor

public:
   char* Name();                          // identification
   DiscreteGen(int,Real*);                // constructor
   DiscreteGen(int,Real*,Real*);          // constructor
   ~DiscreteGen();                        // destructor
   Real Next();                           // new single value

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线视频网址| 日本vs亚洲vs韩国一区三区 | 高清在线观看日韩| 精品亚洲porn| 久久99精品久久久久婷婷| 奇米精品一区二区三区在线观看 | 亚洲视频一区二区在线| 日本一区二区久久| 欧美国产1区2区| 国产精品久久久久久久久久免费看| 久久综合99re88久久爱| 久久久www成人免费毛片麻豆| 久久久久亚洲综合| 欧美激情在线一区二区| 国产精品二三区| 一区二区三区欧美亚洲| 一个色妞综合视频在线观看| 亚洲国产精品欧美一二99| 天天影视涩香欲综合网| 婷婷久久综合九色国产成人| 奇米888四色在线精品| 国产一区二区不卡在线| 成人美女视频在线观看18| 成人动漫一区二区在线| 欧美综合色免费| 欧美一区二区三区免费视频| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 日韩专区一卡二卡| 激情综合色播五月| 成人免费毛片app| 欧美亚洲国产一区在线观看网站| 在线观看91av| 国产精品国产三级国产专播品爱网 | 91精品婷婷国产综合久久| 久久九九久久九九| 亚洲欧美日韩人成在线播放| 免费成人av资源网| jiyouzz国产精品久久| 欧美三级日本三级少妇99| 欧美一区二区人人喊爽| 中文字幕+乱码+中文字幕一区| 亚洲午夜三级在线| 韩国av一区二区三区四区| 91蜜桃网址入口| 日韩亚洲国产中文字幕欧美| 中文字幕久久午夜不卡| 午夜欧美大尺度福利影院在线看| 国产一区欧美日韩| 777久久久精品| 国产精品嫩草久久久久| 奇米在线7777在线精品| 国产91富婆露脸刺激对白| 欧美一区二区三区在线观看视频| 国产精品丝袜黑色高跟| 美女任你摸久久| 欧美性猛交xxxx黑人交| 中文字幕国产精品一区二区| 久久99日本精品| 欧美色大人视频| 亚洲视频狠狠干| 国产一区在线观看麻豆| 7777精品伊人久久久大香线蕉完整版 | 97超碰欧美中文字幕| 欧美精品一区二区三区久久久| 一区二区欧美视频| 成人久久18免费网站麻豆 | 国产亚洲短视频| 狠狠色伊人亚洲综合成人| 欧美老肥妇做.爰bbww| 亚洲视频一二三区| 99久久免费精品高清特色大片| 亚洲精品一区二区三区影院 | 亚洲不卡一区二区三区| 99热99精品| 国产精品免费av| 国产激情视频一区二区在线观看| 日韩亚洲欧美成人一区| 午夜a成v人精品| 欧美手机在线视频| 午夜精品在线视频一区| 欧美日韩国产影片| 亚洲一二三区视频在线观看| 色视频成人在线观看免| 欧美一级欧美三级| 最新日韩av在线| av中文字幕一区| 粉嫩一区二区三区性色av| 精品午夜一区二区三区在线观看| 色网综合在线观看| 老司机一区二区| 日日嗨av一区二区三区四区| 亚洲成人av一区二区| 午夜精品久久久久久久99水蜜桃 | 中文久久乱码一区二区| 久久精品水蜜桃av综合天堂| 国产欧美综合在线| 欧美国产丝袜视频| 中文字幕一区在线观看视频| 亚洲视频一区在线| 亚洲国产综合视频在线观看| 亚洲在线成人精品| 亚洲va国产天堂va久久en| 免费看日韩精品| 国产成人亚洲综合a∨猫咪| 成人av一区二区三区| 91麻豆国产香蕉久久精品| 色综合咪咪久久| 欧美顶级少妇做爰| 久久久久久久免费视频了| 欧美国产禁国产网站cc| 亚洲午夜电影在线| 久久国产日韩欧美精品| 成人免费视频一区二区| 欧美女孩性生活视频| 亚洲精品一线二线三线| 亚洲精品视频在线看| 日韩成人免费看| 丰满放荡岳乱妇91ww| 欧美日韩国产一区| 国产亚洲成aⅴ人片在线观看| 亚洲一区在线观看网站| 国产高清亚洲一区| 精品视频在线看| 中文字幕第一区综合| 日韩精品乱码av一区二区| 亚洲一区二区在线免费看| 国产精品91一区二区| 7777精品伊人久久久大香线蕉超级流畅 | 久久电影网电视剧免费观看| 91香蕉视频mp4| 精品国产3级a| 亚洲国产wwwccc36天堂| 成人高清伦理免费影院在线观看| 国产精品一二三| 欧美中文一区二区三区| 1024精品合集| 日日骚欧美日韩| 国产99精品国产| 欧美三电影在线| 国产欧美一二三区| 亚洲国产精品国自产拍av| 日韩福利视频网| 成人动漫在线一区| 91精品国产黑色紧身裤美女| 中文字幕+乱码+中文字幕一区| 亚洲va国产va欧美va观看| 成人va在线观看| 欧美成人福利视频| 亚洲一区二区在线观看视频| 国产成人精品免费网站| 欧美剧情电影在线观看完整版免费励志电影 | 91丨九色丨黑人外教| 日韩美女一区二区三区四区| 亚洲人妖av一区二区| 久久精品国产久精国产爱| 欧美在线观看一二区| 国产亚洲精品资源在线26u| 夜夜揉揉日日人人青青一国产精品| 九色综合国产一区二区三区| 在线亚洲一区二区| 日本一区二区不卡视频| 国产一区高清在线| 欧美福利视频一区| 亚洲精品国产一区二区精华液 | 一区二区三区欧美视频| 91老师片黄在线观看| 国产日韩高清在线| 久草这里只有精品视频| 欧美日产国产精品| 亚洲成人激情av| 欧美午夜宅男影院| 亚洲一区二区三区激情| 91在线丨porny丨国产| 国产欧美精品在线观看| 亚洲三级在线看| 91捆绑美女网站| 亚洲日本va午夜在线影院| 99精品欧美一区二区三区综合在线| 久久综合久色欧美综合狠狠| 蜜桃精品视频在线观看| 欧美一区二区三区在线观看视频 | 成人激情图片网| 国产精品区一区二区三| av高清不卡在线| 亚洲色图清纯唯美| 欧美性xxxxx极品少妇| 亚洲成人先锋电影| 欧美大片顶级少妇| 国产乱码精品1区2区3区| 国产精品午夜免费| 色偷偷久久人人79超碰人人澡| 亚洲免费观看高清在线观看| 狠狠色综合播放一区二区| 欧美成人vps| 国产成人在线电影| 中文字幕在线一区免费| 全部av―极品视觉盛宴亚洲| 日韩欧美国产系列| 成人午夜免费电影| 亚洲一区精品在线|