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

📄 baserndgen.h

📁 Bubble Oscillation Algorithm. It is used to implement balancing load traffic, which is similar to wh
💻 H
字号:
//////////////////////////////////////////////////////////////////////
//  Title:        A Cooperative Negotiation Approach for Cellular Coverage Control
//
//  Description:  Using cooperative negotiation to dynamically control the cell size and 
//                shapes according to different call traffic distributions. 
//
//  Copyright:    Copyright (c) 2002
//  Company:      Elec. Eng., Queen Mary, University of London
//  @author       Lin Du
//  @version      1.0
//
//////////////////////////////////////////////////////////////////////

// BaseRndGen.h: interface for the BaseRndGen class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(BaseRndGen_H_INCLUDED)
#define BaseRndGen_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "random.h"

class BaseRndGen {
public:
	BaseRndGen();
	virtual ~BaseRndGen();

protected:
  // The inverse format of the integral of PDF for the random value, must be define in sub-class
  //    return value: y = invIntegralPDF(x + IntegralPDF( lower limit of y )) 
  //                  where x is the probability, a uniformly distributed random number in [0-1.0]
  virtual double invIntegralPDF(double x) = 0;
  // Get the random value yields the PDF distribution, by internal uniform random generator or external one 
  double getRnd();
  double getRnd(double uniformRnd); // uniformRnd must be in [0 - 1.0]

private:
  // Return a random value between 0 to 1.0
  double getRandom();
};

#endif // !defined(BaseRndGen_H_INCLUDED)

⌨️ 快捷键说明

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