SU1405056A1 - Random number generator - Google Patents
Random number generator Download PDFInfo
- Publication number
- SU1405056A1 SU1405056A1 SU864065999A SU4065999A SU1405056A1 SU 1405056 A1 SU1405056 A1 SU 1405056A1 SU 864065999 A SU864065999 A SU 864065999A SU 4065999 A SU4065999 A SU 4065999A SU 1405056 A1 SU1405056 A1 SU 1405056A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- decoder
- block
- unit
- Prior art date
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Изобретение относитс к вычис- лительной технике и может быть использовано в приставках к универ-- сальным ЭЦВМ дл получени случайных чисел, подчин ющихс законам распределени Пирсона. Цель изобретени - расширение области применени за счет формировани случайных чисел, подчин ющихс законам распределени Пирсона. Генератор содержит датчик 1 равномерно распределенных случайных чисел, блок 2 сложени и вычитани , блок 3 умножени , блок 4 пам ти,блок 5.управлени , три группы 6, 7, 8 элементов ИЛИ, три злемента 9-11 ИЛИ, элемент 12 задержки и два регистра 13, 14. Поставленна цель достигаетс за счет введени новых блоков с соответствующими функциональными св з ми. 1 ил., 2 табл. The invention relates to a computing technique and can be used in attachments to universal PCs for obtaining random numbers that are subject to the Pearson distribution laws. The purpose of the invention is to expand the scope of application by forming random numbers that are subject to the laws of the Pearson distribution. The generator contains a sensor 1 of uniformly distributed random numbers, a block 2 for adding and subtracting, a block of 3 multiplications, a block of 4 memory, a block of 5.control, three groups of 6, 7, 8 OR elements, three elements of 9-11 OR, a delay element 12 and two registers 13, 14. The goal is achieved by introducing new blocks with appropriate functional connections. 1 dw., 2 tab.
Description
4four
ОABOUT
СПSP
о елabout ate
Изобретение относитс к вычислительной технике и может быть использовано в приставках к универсальным ЭЦВМ дл получени случайных чисел, подчин ющихс законам распределени Пирсона.The invention relates to computing and can be used in consoles to universal electronic computers for obtaining random numbers obeying the laws of the Pearson distribution.
Цель изобретени - расширение области применени за счет формировани случайных чисел, подчин ющихс законам распределени Пирсона.The purpose of the invention is to expand the scope of application by forming random numbers that are subject to the laws of the Pearson distribution.
На чертеже показана структурна схема генератора случайных чисел.The drawing shows a block diagram of a random number generator.
Генератор содержит датчик 1 равномерно распределенных случайных чисел j блок 2 сложени и вычитани , блок 3 умножени , блок 4 пам ти,блок 5 управлени , группы 6-8 элементов ИЛИэ элементы ИЛИ 9-11, элемент 12 задержки, регистры 13 и, 14.The generator contains a sensor 1 of uniformly distributed random numbers j block 2 of addition and subtraction, block 3 multiplication, block 4 of memory, block 5 of control, groups 6-8 of elements OR of elements OR 9-11, element 12 of delay, registers 13 and 14.
Блок 5 управлени содержит элемент ИЛИ 15, счетчик 16, дешифратор 17, элементы ИЛИ 18-27, элементы И 28-30, элемент ИЛИ 31, элемент 32-35 задержки, элемент НЕ 36, элемент ИЛИ 37, триггеры 38-40.The control unit 5 contains the element OR 15, the counter 16, the decoder 17, the elements OR 18-27, the elements AND 28-30, the element OR 31, the element 32-35 of the delay, the element NOT 36, the element OR 37, the triggers 38-40.
Генератор работает следующим об- разоМоThe generator works as follows.
Последовательность выполнени операций приведена в табл. 1 ,The sequence of operations is given in table. one ,
В регистр 13 записываетс код признака закона распределени (коды адре сов величин даны в табл. 2), и по сигналу, поступающему на вход Пуск 1 енератора начинаетс его работа. Ко признака закона распределени и код, определ емый состо нием триггеров 38-40, определ ет адрес той или иной величины, хран щейс в блоке 4 пам ти .The register 13 records the code of the sign of the distribution law (the codes for the ad- ministration of the values are given in Table 2), and the signal on the input of the Generator Start 1 starts its operation. The attribute of the distribution law and the code determined by the state of the flip-flops 38-40 determine the address of one or another value stored in memory block 4.
Под воздействием сигнала запуска в счетчике 16 устанавливаетс код 0001, на первом выходе дешифратора 17 по вл етс сигнал, который запускает датчик 15 а также устанавливает триггеры 38-40 в состо ние 001. Сигнал с первого выхода дешифратора, кроме того , проходит через элементы ИЛИ 18 и 22 на блок 4 пам ти и запускает его на считывание величины F (га) дл распределени , например, 1. Величина F (т) из блока 4 заноситс в блок 2 под действием сигнала с первого выхода , поступающего на блок 2 через элемент 32 задержки и элемент ИЛИ. Under the influence of the trigger signal, code 0001 is set in the counter 16, a signal appears on the first output of the decoder 17, which triggers the sensor 15 and also sets the triggers 38-40 to the state 001. The signal from the first output of the decoder also passes through the OR elements 18 and 22 to memory block 4 and starts it to read the value F (ha) for distribution, for example, 1. The value F (t) from block 4 is entered into block 2 by the signal from the first output to block 2 through the element 32 delays and element OR.
Работа датчика 1 завершаетс по влением cjjy4ai iHoro числа о на его информационном выходе. Число cf зано0The operation of sensor 1 is completed by the occurrence of the cjjy4ai iHoro number on its information output. Cf number 0
5five
00
5five
00
5five
00
0 50 5
ситс в блок 2. Сигнал с выхода окончани формировани чисел датчика 1 устанавливает также в счетчике 16 код 0002. На втором выходе дешифратора 17 по вл етс сигнал, который запускает блок 2 через элемент ИЛИ 25 на выполнение вычитани .The signal from the output of the formation of the numbers of sensor 1 also sets in counter 16 a code 0002. At the second output of the decoder 17, a signal appears that triggers block 2 through the OR 25 element to perform subtraction.
Одновременно по этому сигналу триггеры 38-40 устанавливаютс в состо ние 002, из блока 4 считываетс /Ь2 и заноситс в блок 3.At the same time, by this signal, the triggers 38-40 are set to the state 002, from block 4 it is read / b2 and entered into block 3.
После выполнени вычитани на выходе окончани вычитани А заноситс в блок 3. Сигналом с элементов И.28 и ИЛИ 21 триггеры 38-40 устанавливаютс в состо ние 003, сигналом с элемента 33 задержки запускаетс блок 4 пам ти и в него записываетс также результат вычитани / .After the subtraction is completed, the output of the subtraction A is entered into block 3. The signal from elements 28 and OR 21 triggers 38-40 are set to state 003, the block 4 of memory is started with a signal from delay element 33 and the result of subtraction is also written to it. .
Сигнал с выхода окончани сложени и вычитани блока 2 устанавливает в счетчике 16 код 0003. Под действием сигнала с третьего выхода запускаетс блок 3, триггеры 38-40 устанавливаютс в состо ние 004, из блока 4 считываетс /5 и заноситс в блок 2.The signal from the output of the end of the addition and subtraction of block 2 establishes code 0003 in the counter 16. Under the action of the signal from the third output, block 3 is triggered, triggers 38-40 are set to state 004, /4 is read from block 4 and entered into block 2.
Результат умножени Z, по сигналу с выхода окончани умножени блока 3 заноситс в блок 2. Теперь сигнал по вл етс на четвертом выходе дешифратора 17 и запускает блок 2 на выполнение операции сложени через элемент ИЛИ 31. Одновременно триггеры 38-40 устанавливаютс в состо ние 003, из блока 4 пам ти считываетс /, и заноситс в блок 3.The result of multiplying Z, by the signal from the output of the multiplication end of block 3, is entered into block 2. Now the signal appears at the fourth output of the decoder 17 and starts block 2 to perform an add operation through the element OR 31. At the same time, the triggers 38-40 are set to state 003 , from memory block 4 is read /, and entered into block 3.
После операций блоком 2 результат Z под действием сигнала с выхода окончани сложени и вычитани блока 2 заноситс в блок 3. В счетчике 16 фиксируетс код 0005. Сигнал с п того выхода дешифратора 17 пускает блок 3.After operations by block 2, the result Z under the action of the signal from the output of the end of the addition and subtraction of block 2 is entered into block 3. In counter 16, the code 0005 is recorded. The signal from the fifth output of decoder 17 is started up by block 3.
Результат умножени Z-i, заноситс вновь в блок 3 под действием сигнала с выхода элемента И 29. С элемента 35 задержки сигнал проходит через элемент ИЛИ 22 на блок 4 и запускает его на чтение. Считанное заноситс в блок 3. Сигнал с элемента 32 задержки устанавливает триггеры 38-40 в состо ние 004, а в счетчике 1 6 - код 0006 (так как на п том выходе дешифрато.ра 17 и -1еетс сигнал , то на выходе элемента НЕ 36 - низкий уровень и он закрывает элемент ИЛИ 37).The result of the multiplication of Z-i is entered again into block 3 by the signal from the output of element AND 29. From delay element 35, the signal passes through element OR 22 to block 4 and starts it to read. The read out is entered in block 3. The signal from delay element 32 sets the triggers 38-40 to state 004, and in counter 1 6 the code 0006 (since the signal is decrypted at the fifth output and 17 is -1 signal, then the output is NOT 36 - low level and it closes the element OR 37).
Сигнал с шестого выхода дешифратора 17 запускает блок 3, а также устанавливает триггеры 38-40 в состо ние 005. Из блока 4 считываетс И заноситс в блок 2.The signal from the sixth output of the decoder 17 starts the block 3, and also sets the triggers 38-40 to the state 005. From block 4 is read and entered into block 2.
После умножени Z заноситс в блок 2. В счетчике 16 устанавливаетс код 0007..Сигнал с седьмого выхода запускает блок 2. Одновременно триггеры 38-40 устанавливаютс в состо ние 003, из блока 4 считываетс Д и заноситс в блок 3.After multiplying, Z is entered into block 2. In counter 16, code 0007 is set. The signal from the seventh output starts block 2. At the same time, triggers 38-40 are set to state 003, from block 4 it is read out D and entered into block 3.
Результат вычитани Zj фиксируетс в блоке 3. Сигнал с выхода окочани сложени и вычитани блока 2 вызывает сигнал на восьмом выходе дешифратора 17, который запускает Влок 3, триггеры 38-40 устанавливаютс в состо ние 006, из блока 4 считываетс m и заноситс в блок 2.The result of subtracting Zj is fixed in block 3. The signal from the output of the addition and subtraction of block 2 causes a signal at the eighth output of the decoder 17, which triggers Vlok 3, triggers 38-40 are set to state 006, from block 4 it is read m and entered into block 2 .
После умножени Z заноситс также в блок 2,After multiplying, Z is also entered in block 2,
Сигнал с дев того выхода дешифратора 17 запускает блок 2 на выполнение операции сложени . Триггеры 38-40 устанавливаютс в состо ние 007. Результат операции сложени х заноситс в блок 4 пам ти. На дес том выходе дешифратора 17 по вл етс сигнал, который записьюает сформированное число в регистр 14, выхо которого вл етс выходом генератора .The signal from the ninth output of the decoder 17 starts the block 2 to perform the addition operation. Triggers 38-40 are set to state 007. The result of the add operation is stored in memory block 4. At the tenth output of the decoder 17, a signal appears that records the generated number in register 14, the output of which is the generator output.
Сущность изобретени состоит в следующем.The essence of the invention is as follows.
Известно, что уравнениеKnown that the equation
-ьГх-б; Ь: «.-GHB; B: “.
где Ь- (, 1,2)- параметрыwhere b- (, 1,2) - parameters
m - мода распределени , вл етс уравнением Пирсона.m is the distribution mode, is the Pearson equation.
Зависимости, определ ющие св зь -между b . и параметрами аппроксимирующего распределени , имеют вид , 1 , S+2Dependencies that define the relationship between-b. and parameters of approximating distribution, have the form, 1, S + 2
Ьо - si2; - -Г S-2 Bo - si2; - -G S-2
Ь - А 1 Ь, - - 6 --где S iiill irlA. 3.1-2р,+6 B - A 1 b, - - 6 - where S iiill irlA. 3.1-2p, + 6
центральные моменты k-ro central moments of k-ro
пор дка.for now.
На практике при аппроксимации эмпирических распределений вычисл ютIn practice, when approximating empirical distributions,
первые четыре момента и, использу выражени (2), определ ют оценки параметров уравнений Пирсона. С помощью р дов видаthe first four points and, using expressions (2), determine the parameters of the Pearson equations. Using a row of views
, .)1,. ., .)one,. .
л)гоVI1Хрl) goVI1Hr
И соотношенийAnd ratios
10ten
1515
(3)(3)
и т.д. может быть разработан алгоритм , позвол ющий преодолеть трудности пр мого моделировани распределе- НИИ, аппроксимированных кривыми Пирсона . Так как распределени заданы дифференциальным уравнением (1), причем граничные услови F (-ос) О, F (СИ ) 1, то из формул (3) и систеetc. An algorithm can be developed to overcome the difficulties of directly simulating a distribution institute approximated by Pearson curves. Since the distributions are given by the differential equation (1), and the boundary conditions F (-os) O, F (SI) 1, then from formulas (3) and the system
F (Xm) о, .)F (Xm) o,.)
(х), F (х), о (x), f (x), o
3535
следует, чтоfollows that
D XD x
4040
D XD x
X,X,
О, ABOUT,
D3D3
1 Li5«l 1 Li5 "l
4545
5050
и т.д.etc.
Выбира в качестве опорной точки Хр т, можно получитьChoosing as a reference point Xy t, you can get
F (х ) Й ГI2IS (х) F (x) I GI2IS (x)
о- dx L Ьох2+Ь,х+Ц o- dx L hox2 + b, x + c
F (хо),F (ho),
1one
box|+b,box | + b,
v4 ( -7v rv )2Ьо.v4 (-7v rv) 2HO.
55 F (x,)-2F ( - (,x,-eb)255 F (x,) - 2F (- (, x, -eb) 2
(4)(four)
Тем самым определ етс структура моделирующего алгоритма, обеспечивающего имитацию распределений ПирсонаThis determines the structure of the simulation algorithm, which provides an imitation of the Pearson distributions
X (-F(m)j 7X (-F (m) j 7
1 W-F(m)F (m)1 W-F (m) F (m)
33
F CmXbomVb m+b)F CmXbomVb m + b)
(5)(five)
(m)T 2(2bom+b i)(m) T 2 (2bom + b i)
4 (bpm +bim+b,2)2FMm)4 (bpm + bim + b, 2) 2FMm)
Если обозначить (вычисл емые заранее посто нные коэффициенты)If we denote (pre-calculated constant coefficients)
1 Р о,1 P o,
Р R
6F (т)()6F (t) ()
2bom+bi2bom + bi
12F (m)() 112F (m) () 1
fi --- 1fi --- 1
F(m)F (m)
то зависимость (5) преобразуетс к видуthe relationship (5) is converted to
() где Л о( - F(m) . () where Л о (- F (m).
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864065999A SU1405056A1 (en) | 1986-03-28 | 1986-03-28 | Random number generator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864065999A SU1405056A1 (en) | 1986-03-28 | 1986-03-28 | Random number generator |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1405056A1 true SU1405056A1 (en) | 1988-06-23 |
Family
ID=21237148
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864065999A SU1405056A1 (en) | 1986-03-28 | 1986-03-28 | Random number generator |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1405056A1 (en) |
-
1986
- 1986-03-28 SU SU864065999A patent/SU1405056A1/en active
Non-Patent Citations (1)
Title |
---|
Дроздов Е.А. и др. Многопрограммные цифровые вычислительные машины. - М.: Воениздат, 1974. Авторское свидетельство СССР № 1099319, кл. G 06 F 7/58, 1984. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR880001168B1 (en) | Digital signal processing system | |
JPS61208167A (en) | Histogram data generator | |
SU1405056A1 (en) | Random number generator | |
JPS6051894A (en) | Reverberation adder | |
US4424730A (en) | Electronic musical instrument | |
JP2995984B2 (en) | 3D waveform display device | |
SU1755279A1 (en) | Generator of multivariable random processes | |
RU2779255C1 (en) | Device for modeling the product selection process | |
JP2603809B2 (en) | Random number generation circuit | |
JP2574312B2 (en) | High speed Hadamard converter | |
JPS60191297A (en) | Channel alloter for electronic musical instrument | |
JPH0658958A (en) | Three-dimensional waveform display device | |
JPS5840769B2 (en) | random number generator | |
SU1124318A1 (en) | Device for simulating graph | |
SU1233160A1 (en) | Device for calculating values of logical functions | |
SU1434428A1 (en) | Device for raising to power | |
SU1578708A1 (en) | Arithmetical device | |
SU1243011A1 (en) | Device for teaching microprogramming | |
JP3128195B2 (en) | Method and apparatus for displaying logic simulation result of semiconductor integrated circuit | |
SU1543400A1 (en) | Device for multiplication of variable by a fraction | |
SU1405073A1 (en) | Device for resolving a system of linear algebraic equations | |
JPS5824819B2 (en) | Hiyoji Seigiyohoushiki | |
SU1257658A2 (en) | Device for implementing logic functions | |
SU1176321A1 (en) | Arithmetic-logic unit | |
SU1494018A1 (en) | Matrix device for computing convolution |