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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? newran.h

?? 這是cdma2000的一個(gè)分組調(diào)度算法實(shí)例
?? H
?? 第 1 頁 / 共 2 頁
字號(hào):
// 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美色综合| 国产精品资源在线观看| 国产视频在线观看一区二区三区 | 精品少妇一区二区三区在线播放 | 欧美日韩五月天| 99久久国产综合精品女不卡| 高清成人免费视频| 国产91精品入口| eeuss影院一区二区三区| 国产丶欧美丶日本不卡视频| 国产乱对白刺激视频不卡| 狠狠久久亚洲欧美| 国产精品羞羞答答xxdd| 成人黄色国产精品网站大全在线免费观看 | 国产精品毛片无遮挡高清| 国产欧美精品日韩区二区麻豆天美| 精品国产乱码91久久久久久网站| 日韩欧美中文一区二区| 精品国产污网站| 久久精品亚洲一区二区三区浴池| 久久精品网站免费观看| 国产精品福利影院| 亚洲国产乱码最新视频| 丝袜亚洲另类欧美| 国产精品综合在线视频| 99久久久精品| 欧美日本在线一区| 337p日本欧洲亚洲大胆色噜噜| 国产欧美日韩精品一区| 亚洲免费看黄网站| 蜜臀国产一区二区三区在线播放| 秋霞av亚洲一区二区三| 成人午夜免费电影| 欧美日韩三级一区| 久久久亚洲高清| 亚洲黄色免费网站| 精品一区二区久久| 色www精品视频在线观看| 制服丝袜一区二区三区| 日日夜夜一区二区| 国产福利一区二区三区在线视频| 99麻豆久久久国产精品免费 | 7878成人国产在线观看| 久久久久9999亚洲精品| 亚洲成a天堂v人片| 成人一区二区三区| 日韩三级电影网址| 一区二区三区日韩在线观看| 国产一区二区网址| 欧美精品日韩精品| 亚洲四区在线观看| 国产一区二区看久久| 3d动漫精品啪啪一区二区竹菊| 国产日韩三级在线| 久久69国产一区二区蜜臀| 欧美伊人久久久久久久久影院| 久久久久久麻豆| 麻豆精品在线看| 欧美日韩色综合| 亚洲一区二区三区国产| 成人免费黄色在线| 国产无一区二区| 久久99国产乱子伦精品免费| 7777精品伊人久久久大香线蕉最新版| 国产精品久久久久天堂| 亚洲国产aⅴ天堂久久| kk眼镜猥琐国模调教系列一区二区| 国产午夜一区二区三区| 国产在线精品一区二区夜色 | 91蜜桃传媒精品久久久一区二区| 色综合色狠狠综合色| 久久综合成人精品亚洲另类欧美| 亚洲国产视频网站| 91免费看片在线观看| 国产精品美日韩| 国产精品一区二区黑丝| 日韩精品中文字幕在线一区| 亚洲aⅴ怡春院| 欧美日韩视频在线一区二区| 亚洲精品国产一区二区精华液 | 成人国产亚洲欧美成人综合网| 久久久久成人黄色影片| 国产一区不卡视频| 久久亚洲综合色| 国产精品一卡二卡在线观看| 国产女人18毛片水真多成人如厕 | 中文字幕一区二区在线播放| jvid福利写真一区二区三区| 国产精品理论在线观看| 91丨九色丨尤物| 亚洲精品视频在线看| 欧美三级视频在线| 日韩电影在线免费看| 欧美成人综合网站| 国产高清在线观看免费不卡| 中文字幕免费不卡在线| 91麻豆精品在线观看| 亚洲午夜私人影院| 欧美狂野另类xxxxoooo| 麻豆91精品91久久久的内涵| 欧美成人一区二区三区| 成人av资源网站| 亚洲影视资源网| 欧美成人免费网站| 91玉足脚交白嫩脚丫在线播放| 亚洲综合一二三区| 日韩精品影音先锋| 99久久精品免费看国产免费软件| 一区二区三区小说| 亚洲一线二线三线视频| 日韩视频在线永久播放| 成人av在线看| 日韩综合在线视频| 国产精品天天摸av网| 欧美高清精品3d| 国产成人亚洲综合a∨婷婷| 亚洲女与黑人做爰| 精品乱码亚洲一区二区不卡| 成人99免费视频| 欧美aⅴ一区二区三区视频| 久久久不卡影院| 3d成人h动漫网站入口| 成人高清av在线| 蜜臀91精品一区二区三区 | 一区二区三区欧美日韩| 精品久久久久久综合日本欧美| 9i看片成人免费高清| 蜜臀av在线播放一区二区三区| 亚洲色图一区二区三区| 26uuu久久综合| 91精品国产日韩91久久久久久| 成人的网站免费观看| 九一九一国产精品| 亚洲国产一区二区三区| 国产无遮挡一区二区三区毛片日本| 欧美日韩三级在线| av动漫一区二区| 国产很黄免费观看久久| 美腿丝袜一区二区三区| 亚洲一二三区在线观看| 中文字幕在线不卡国产视频| 久久综合九色综合欧美98| 欧美精品在线一区二区三区| 99riav一区二区三区| 国产精品一区二区在线观看不卡| 日本一不卡视频| 天堂一区二区在线| 亚洲第一福利一区| 亚洲第一福利视频在线| 亚洲一区二区影院| 亚洲在线一区二区三区| 亚洲综合激情另类小说区| 亚洲精品国产一区二区精华液| 综合欧美一区二区三区| 中文字幕一区二区三区在线播放| 欧美激情综合五月色丁香小说| 久久综合久久综合亚洲| 久久亚洲私人国产精品va媚药| 欧美大尺度电影在线| 精品处破学生在线二十三| 精品日韩99亚洲| 国产亚洲一本大道中文在线| 国产亚洲欧美日韩在线一区| 国产日韩综合av| 综合久久综合久久| 亚洲国产精品久久一线不卡| 三级不卡在线观看| 麻豆一区二区三| 久久99精品国产91久久来源| 日本vs亚洲vs韩国一区三区二区| 久久精品夜夜夜夜久久| 国产精品国模大尺度视频| 国产农村妇女毛片精品久久麻豆| 久久精品视频一区二区三区| 久久久www成人免费毛片麻豆 | 蜜臀精品一区二区三区在线观看 | 欧美婷婷六月丁香综合色| 91片黄在线观看| 91国偷自产一区二区三区成为亚洲经典| 粉嫩在线一区二区三区视频| 国产成人午夜高潮毛片| 国产精品一区免费视频| 91国在线观看| 91麻豆精品国产91久久久久久久久 | 26uuu国产在线精品一区二区| 欧美成人video| 亚洲色图欧洲色图| 亚洲一区二区三区自拍| 婷婷中文字幕综合| 日韩极品在线观看| 成人性色生活片免费看爆迷你毛片| 成人午夜av在线| 日本乱人伦aⅴ精品| 精品999在线播放| 国产精品超碰97尤物18| 亚洲国产欧美日韩另类综合| 国产乱码一区二区三区| 91蜜桃免费观看视频| 91麻豆精品国产自产在线观看一区| 91精品国产一区二区人妖|