Location:
Search - Uniform
Search list
Description: 实做电脑图学的Uniform B-spline Curve。先在画面上,任意点几个绘图点,并设置degree,按下Uniform B-spline按钮,即可产生图形。
Platform: |
Size: 207584 |
Author: 李威和 |
Hits:
Description: Uniform Generator
Computer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the form
where `` " is the modulus operator.
Such a function will generate pseudo-random numbers (seed) between 0 and MOD-1. One problem with functions of this form is that they will always generate the same pattern over and over. In order to minimize this effect, selecting the STEP and MOD values carefully can result in a uniform distribution of all values between (and including) 0 and MOD-1.
For example, if STEP = 3 and MOD = 5, the function will generate the series of pseudo-random numbers 0, 3, 1, 4, 2 in a repeating cycle. In this example, all of the numbers between and including 0 and MOD-1 will be generated every MOD iterations of the function. Note that by the nature of the function to generate the same seed(x+1) every time seed(x) occurs means that if a function will generate all the numbers between 0 and MOD-1, it will generate pseudo-random numbers uniformly with every MOD iterations.
If STEP = 15 and MOD = 20, the function generates the series 0, 15, 10, 5 (or any other repeating series if the initial seed is other than 0). This is a poor selection of STEP and MOD because no initial seed will generate all of the numbers from 0 and MOD-1.
Your program will determine if choices of STEP and MOD will generate a uniform distribution of pseudo-random numbers.
Input
Each line of input will contain a pair of integers for STEP and MOD in that order ( ).
Output
For each line of input, your program should print the STEP value right- justified in columns 1 through 10, the MOD value right-justified in columns 11 through 20 and either ``Good Choice" or ``Bad Choice" left-justified starting in column 25. The ``Good Choice" message should be printed when the selection of STEP and MOD will generate all the numbers between and including 0 and MOD-1 when MOD numbers are generated. Otherwise, your program should print the message ``Bad Choice". After each output test set, your program should print exactly one blank line.
Sample Input
3 5
15 20
63923 99999
Sample Output
3 5 Good Choice
15 20 Bad Choice
63923 99999 Good Choice
Platform: |
Size: 360 |
Author: samurai1x4kyo@126.com |
Hits:
Description: 均匀分布和高斯分布的C代码-uniform and Gaussian distribution of C code
Platform: |
Size: 3072 |
Author: int |
Hits:
Description: Random Number Generators(随机数生成)包括gaussian random number generator、uniform random number generator、low-frequency hold generator、1/f noise generator等5种随机信号生成的c源代码-Random Number Generators (Random Number Generation), including Gaussian random number generator, uniform random number generator, low-frequency generator hold, a/f noise generator five kinds of random signals generated by the source code c
Platform: |
Size: 2048 |
Author: |
Hits:
Description: 均匀分布的随机数,并依此产生高斯分布随机数,12和法和Box-Muller法产生高斯分布-uniform distribution of random numbers, and so have a Gaussian distribution of random numbers, 12 and the law and Box-Muller method, Gaussian distribution
Platform: |
Size: 1024 |
Author: 吴俊 |
Hits:
Description: Distribution generator
Here is a simple generator which can build some distributions with given properties.
Distributions generator (compile with -lm)
Typical use might be:
./distributions -u -m 1 -M 10 -n 100 -s 500
Generates a distribution of 100 uniform random numbers between 1 and 10, such that the sum of numbers is 500.
./distributions -p -2.2 -m 1 -M 100 -n 200 -s 500
Idem with 200 numbers between 1 and 100 following a power law with exponent --Distribution generatorHere is a simple generator which can build some distributions with given properties.Distributions generator (compile with-lm) Typical use might be:./Distributions-u-m 1-M 10-n 100-s 500Generates a distribution of 100 uniform random numbers between 1 and 10, such that the sum of numbers is 500../distributions-p-2.2-m 1-M 100-n 200-s 500Idem with 200 numbers between 1 and 100 following a power law with exponent--
Platform: |
Size: 2048 |
Author: 阿类 |
Hits:
Description: 实现对数压缩PCM和线性PCM的信噪比特性曲线的仿真,非均匀量化级数为n=8和n=6。-realization of a number of PCM compressed and linear PCM signal-to-noise ratio of the characteristic curve simulation, non-uniform quantization Series n = 8 and n = 6.
Platform: |
Size: 1024 |
Author: 段美姣 |
Hits:
Description: 用来产生均匀分布或高斯分布的伪随机数 (近似白噪声),它们可具有不同的均值和方差。用REMEZ算法求交错点组。用Cholesky分解求ARMA模型的参数并作谱估计。求MA模型的参数 并估计功率谱。 用最小方差法估计序列 的功率谱。-used to produce uniform or Gaussian distribution of the pseudo-random number (similar to white noise). They may have a different mean and variance. Application of Remez algorithm used for staggered Point Group. Cholesky decomposition used for ARMA model and the parameters estimated for the spectrum. MA for the model parameters and the estimated power spectrum. With MVM sequence of the estimated power spectrum.
Platform: |
Size: 5120 |
Author: zhoujianfang |
Hits:
Description: 加权的波束形成程序,均匀线列阵,可以扩展到各种阵形,各种加权情况-weighted beamforming procedures, uniform linear array, can be extended to the various camps, all kinds of weighted
Platform: |
Size: 1024 |
Author: 刘本奇 |
Hits:
Description: 阵列信号处理中:四个输入信号,八单元均匀圆阵的波达方向估计和波束形成.应用Music方法-Array Signal Processing: four input signals, eight units of uniform circular array DOA estimation and beamforming. Applied Music Methods
Platform: |
Size: 1024 |
Author: 杨为 |
Hits:
Description: 实做电脑图学的Uniform B-spline Curve。先在画面上,任意点几个绘图点,并设置degree,按下Uniform B-spline按钮,即可产生图形。-Computer graphics to do it is the Uniform B-spline Curve. First on the screen at any point a few graphics and set up degree, press the Uniform B-spline button to generate graphics.
Platform: |
Size: 206848 |
Author: 李威和 |
Hits:
Description: Uniform Random Number Generator,copy from book
Platform: |
Size: 532480 |
Author: River |
Hits:
Description: 分享一个外国人编写的FDTD程序,可以用来计算微带线和微带贴片天线,程序中采用的是均匀网格划分,但也可以在容易地在它基础上改写成非均匀网格.其边界条件与Sheen的程序不同,这里采用二阶技术.-Prepared to share a foreigner FDTD procedures, can be used to calculate the microstrip lines and microstrip patch antenna, the procedure used is uniform mesh, but can also easily rewrite it into the basis of non-uniform grid. its boundary conditions with different processes and Sheen, where second-order technology.
Platform: |
Size: 6144 |
Author: sunorit |
Hits:
Description: 均匀圆阵的指向性仿真和模拟,原创,最后求出其指向性图,参数可自行代换-Uniform circular array of directional and analog simulation, originality, and finally obtained its directivity diagram, parameters can be self-substitution
Platform: |
Size: 3072 |
Author: 陈阳 |
Hits:
Description: 本程序计算的是由U11(112)表计算混料均匀设计3水平11次试验的情况
即《正交与均匀试验设计(方开泰,马长兴著,科学出版社出版)》一书146页例题3.8的计算。-This procedure is calculated by the U11 (112) Table calculating the mixture uniform design 3 level 11 test cases that is, Orthogonal and Uniform Experimental Design (Fang Kaitai, Changxing Ma, and Science Publishing House), a book 146 3.8 Example calculations.
Platform: |
Size: 24576 |
Author: 李文凯 |
Hits:
Description: 格式 [sqnr,a_quan,code]=u_pcm(a,n)
输入样值序列a 、量化电平数目n, 程序计算量化间隔、进行均匀量化、进行编码、计算量化信噪比, 返回量化信噪比squn、编码前的量化序列a_quan、编码后的码序列code。
-Format [sqnr, a_quan, code] = u_pcm (a, n) input sample value sequence a, the number of quantization levels n, the calculation procedures to quantify interval, the uniform quantization, coding, computing quantization noise ratio, return quantization noise ratio squn, to quantify the pre-coding sequence a_quan, coding sequences after the code.
Platform: |
Size: 1024 |
Author: wx |
Hits:
Description: 天线阵列为均匀圆阵时,采用MUSIC算法进行DOA估计的源程序。-Antenna array for uniform circular array, the MUSIC algorithm using the estimated DOA of the source.
Platform: |
Size: 3072 |
Author: kehengying |
Hits:
Description: 产生正常分布的sobol sequences,generating of normally distributed
quasi uniform distributed: sobol sequences-Have a normal distribution sobol sequences, generating of normally distributed quasi uniform distributed: sobol sequences
Platform: |
Size: 1024 |
Author: jiangshuiya |
Hits:
Description: C++使用OPENCV來加UNIFORM的雜訊-C++ Use OPENCV to increase the noise UNIFORM
Platform: |
Size: 2016256 |
Author: 陳榮裕 |
Hits:
Description: 方开泰创立的均匀设计表程序,用来实现实验设计。(Fang Kaitai created the uniform design table program, which is used to realize the experiment design.)
Platform: |
Size: 296960 |
Author: sads217867876 |
Hits:
« 12
3
4
5
6
7
8
9
10
...
50
»