00 со00 with
Изобретение относитс к вычислительной технике и может быть использовано в технике статистического моделировани . Известен генератор случайных чисел, использующий принцип авторег рессии l . Недостатком этого генератора вл етс его низка эффективность. Наиболее близким техническим решением к данному изобретению вл 4тс генератор коррелированной последовательности случайных чисел, .солержёший регистр числа, генератор тактовых импульсов, генератор нормально распределенных случайных чисел, элемент задержки, квадратор, сумматор, умножители 2J . Однако этот генератор не позвол е получить бета-распределение. Целью изобретени вл етс расширеиие функциональных возможностей генератора за счет получени бэтараспределени . Дл достижени поставленной цели в генератор коррелированной последовательности случайных чисел, содержа щий сумматор, выход которого вл етс выходом генератора и соединен со входом элемента задержки, выход кото рого соединен с первым входом сумматора , первый регистр числа, выход которого соединен с первым входом первого умножител и со входом квадратору , выход которого соединен-с первым входом второго умножител , выход которого соединен со вторым входом сумматора, генератор тактовых импуль сов, выход которого соединен со эходом генератора нормально .распределен |НЫх случайных чисел, выход которого (соединен со вторым входом первого умножител , выход которого соединен с третьим входом сумматора, введены второй, третий и четвертый регистры числа, третий умножитель, первый и второй вычитатели, блок делени и блок вычислени обратной величины, вход которого соединен с выходом элемента задержки и со входом вычитаемого первого вычитател , вход уменьшаемого которого соединен с выходом второго регистра числа, выход третьего регистра числа соединен со входом делимого блока делени , вход делител которого соединен с вьссодом первого вычитател , а вы- ход блока делени соединен со входом вычитаемого второго вычитател , выход которого соединен со вторым входом Второго умножител , выход четверто го регистра числа соединен с Первым входсш третьего умножител , второй вход которого соединен с выходом &пока вычислени обратной величины, а выход третьего умножител соединен со входом у 1еньшаемого второго вычитател . На фиг. 1 изображена схема генератора; на фиг. 2 - вариант исполнени нелинейного преобразовател . Генератор содержит регистр 1 числа , умножитель 2, квадратор 3, умножитель 4, генератор 5 нормально распределенных случайных чисел, генератор 6 тактовых импульсов, сумматор 7, выход 8, элемент 9 задержки, нелинейный преобразователь 10. Нелинейный преобразователь 10 содержит блок 11 вычислени обратной величины, вход 12 умножитель 13, регистр 14 числа, вычитатель 15, выход 16, вычитатель 17, регистр 18 числа, делитель 19; регистр 20 числа. Генератор работает следующим образом. Посто нное число с выхода регистра 1 поступает на первый вход умножител 2, на второй вход которого поступает случайное число с выхода генератора 5, возбуждаемого генератором 6. Посто нное число с выхода регистра 1, кроме того, возводитс в квадрат в квадраторе 3, после чего поступает на вход умножител 4.Предыдущее число с выхода 8, задержанного на один такт элементом 9 задержки и преобразованное в преобразователе 10,поступает на второй вход умножител 4. Крометого, число с выхода элемента 9 поступает на вход сумматора 7 , где оио складываетс с числами с выходов умножителей 2 и 4. Нелинейный преобразователь 10 работает следукщим образом. Число, поступающее на вход блока 11,преобраз: етс в обратное ему число, которое в умножителе 13 умножаетс на запоминаемое во втором регистре 14 число. Произведение поступает на первый вход первого вычитател 15. В третьем регистре 18 устанавливаетс положительное посто нное число, которое поступает на первый вход второго вычитател , где из него вычитаетс предыдущее число в коррелированной последователь нрсти, поступающее на. первый вход. Число с выхода регистра 20 поступает на первый вход делител , где делитс на разность с выхода второго вычитател , кото15а поступает на второй вход делител . Частное, поступающее на второй вход первого вычитател , вычитаетс из числа, поступающего на его первый вход, и разность подаетс на выход 16.The invention relates to computing and can be used in the technique of statistical modeling. Known random number generator, using the principle of autoregression l. The disadvantage of this generator is its low efficiency. The closest technical solution to this invention is a 4ts generator of a correlated sequence of random numbers, a serial number register, a clock generator, a generator of normally distributed random numbers, a delay element, a quadrant, an adder, and 2J multipliers. However, this generator does not allow for a beta distribution. The aim of the invention is to enhance the functionality of the generator by obtaining beta distribution. To achieve this goal, a correlated random number generator, containing an adder, the output of which is the generator output and connected to the input of the delay element, the output of which is connected to the first input of the adder, the first register of the number, the output of which is connected to the first input of the first multiplier and with the input to the quad, the output of which is connected to the first input of the second multiplier, the output of which is connected to the second input of the adder, a generator of clock pulses, the output of which is connected to the outgoing The generator is normally distributed by random numbers, the output of which is connected to the second input of the first multiplier, the output of which is connected to the third input of the adder, the second, third and fourth number registers are entered, the third multiplier, the first and second subtractors, the division unit and the inverse calculation unit the value, the input of which is connected to the output of the delay element and to the input of the deductible first subtractor, the input of which is decremented is connected to the output of the second register of the number, the output of the third register of the number is connected to the input of the dividend the division location, the divider input is connected to the output of the first subtractor, and the output of the division unit is connected to the input of the subtracted second subtractor, the output of which is connected to the second input of the Second multiplier, the output of the fourth register number is connected to the First input of the third multiplier, the second input is connected with the output of & while calculating the reciprocal, and the output of the third multiplier is connected to the input of the smaller second subtractor. FIG. 1 shows a generator circuit; in fig. 2 shows an embodiment of a non-linear converter. The generator contains a register of 1 number, a multiplier 2, a quad 3, a multiplier 4, a generator of 5 normally distributed random numbers, a generator of 6 clock pulses, an adder 7, an output 8, a delay element 9, a nonlinear converter 10. A nonlinear converter 10 contains a block 11 for calculating the reciprocal , input 12 multiplier 13, register 14 numbers, subtractor 15, output 16, subtractor 17, register 18 numbers, divisor 19; register 20 numbers. The generator works as follows. The constant number from the output of register 1 is fed to the first input of multiplier 2, the second input of which receives a random number from the output of generator 5, excited by generator 6. The constant number from the output of register 1, moreover, is squared in the square 3, after which arrives at the input of the multiplier 4. The previous number from output 8, delayed by one delay element 9 and converted in converter 10, goes to the second input of multiplier 4. In addition, the number from the output of element 9 enters the input of adder 7, where oio is added with numbers from the outputs of multipliers 2 and 4. Nonlinear converter 10 works in the following way. The number arriving at the input of block 11 is converted to its reverse number, which in multiplier 13 is multiplied by the number stored in the second register 14. The product arrives at the first input of the first subtractor 15. In the third register 18, a positive constant is set, which arrives at the first input of the second subtractor, where the previous number in the correlated sequence of the sequence arriving at is subtracted from it. first entry. The number from the output of the register 20 goes to the first input of the divider, where it is divided by the difference from the output of the second subtractor, which goes to the second input of the divider. The quotient arriving at the second input of the first subtractor is subtracted from the number arriving at its first input, and the difference is fed to output 16.
Фи&1Fi & 1
}8}eight