Изобретение относитс к области вычислительной техники и может быть использовано при статическом моделир вании. По основному авт. св. № 705438 из вестен датчик, содержащий блок ввода функции распределени , выходы которого подключены к первой группе входов блока параллельного сравнени чисел , втора группа входов которого подключена к выходу генератора равномерно распределенных случайных чисел , а выходы - к единичным входам блока триггеров, нулевые входы которых соединены с другим выходом генератора равномерно распределенных .случайных чисел, а выходы - с входами блока элементов И соответственно, вы ходы которого соединены с первыми вх дами вьпсодного блока, вторые входы которого подключены к выходу блока задани выборки, группа выходов которого соединена с первыми входами блока параллельного сравнени чисел, и первый вход - с вторым выходом блока ввода функции распределени , который этим же выходом подключен к первому входу блока пам ти, выход которого соединен с первым входом блока измерени сигнала рассогласовани , второй вход которого через блок управлени подключен к первому выходу блока сравнени , лервый вход которог соединен с третьим выходом блока вво да функции распределени , второй вход - с выходом блока измерени сиг нала рассогласовани , второй выход с BTOpbtM входом блока пам ти, а третий выход - с вторым входом блока за дани выборки tl. Однако известный датчик не позвол т ет использовать дл статистического моделировани функцию распределени , имеющую ллнейный характер изменени . Это св зано с тем, что при линейном изменении исходной функции распределени сигнал на Выходе блока измерег ни сигнала рассогласовани будет равным нулю и на выходе блока задани выборки отсчетов заданной функции распределени не будет. Цель изобретени - расширение фун кциональных возможностей датчика путем обеспечени моделировани при линейном характере изменени заданно функции распределени . Дп достижени поставленной цели в управл емый датчик случайных чисел дополнительно введены ключ. 1 1 элемент задержки, второй блок пам ти, второй блок сравнени и счетчик, счетный вход которого объединен с первым входом блока задани выборки, а Информационный выход счетчика соединен с первым входом второго блока сравнени , второй вход которого вл етс входом задани интервала дискретиз .ации функции распределени , а выход второго блока сравнени соединен с входом обнулени счетчика, со считывающим входом второго блока пам ти и входом элемента задержки, выход которого соединен с управл ющим входом ключа, выход которого объединен с выходом первого блока сравнени и подключен к информационному входу второго блока пам ти, выход которого соединен с информационным входом ключа. На чертеже приведена блок-схема датчика. Датчик содержит блок 1 ввода функции распределени , блок 2 параллельного сравнени чисел, блок 3 пам ти, блок 4 задани выборки, блок 5 сравнени , блок 6 измерени сигнала рассогласовани , блок 7 управлени , датчик 8 равномерно распределенных случайных чисел, триггеры 9, блоки 10 совпадени , выходной блок 11, счетчик 12, блок 13 сравнени , элемент 14 задержки, ключ 15, блок 16 пам ти. Управл ющий датчик случайных чисел работает следующим образом. Непрерывные значени заданной функции распределени поступают с блока 1 ввода на первый вход блока 3 пам ти, где запоминаетс начальное значение F(Xp), которое вычитаетс из последующих текущих значений функции распределени . Эта разность поступает на первый вход блока 6, построенного по мостовой схеме таким образом, что на выходе измерительного элемента имеет место сигнал, пропорциональный степени изменчивости первой производной заданной функции распределени . Если функци распределени на данном участке измен етс линейно (F(X)const), то напр жение на выходе блока 6 равно 0. При отклонении функции распределени от пр мой отличное от нул напр жение с выхода блока 6 поступает на второй вход блока 5 сравнени , При сравнении этого напр жени с до-, пусткмой величиной, котора определ етс .допустимой погрешностьюThe invention relates to the field of computing and can be used in static modeling. According to the main author. St. No 705438 from the well-known sensor, which contains the input block of the distribution function, the outputs of which are connected to the first group of inputs of the parallel number comparison block, the second group of inputs of which are connected to the generator output of uniformly distributed random numbers, and the outputs to the single inputs of the trigger block, zero inputs of which are connected with another output of the generator of uniformly distributed random numbers, and the outputs with the inputs of the block of elements And, respectively, whose outputs are connected to the first inputs of the higher unit, the second to the strokes of which are connected to the output of the sampling block, the group of outputs of which is connected to the first inputs of the parallel number comparison unit, and the first input to the second output of the input block of the distribution function, which is connected to the first input of the memory block whose output is connected to the first input of the error signal measuring unit, the second input of which through the control unit is connected to the first output of the comparison unit, the first input which is connected to the third output of the input unit of the distribution function, the second input - with the output of the measurement unit of the error signal, the second output with the BTOpbtM input of the memory unit, and the third output with the second input of the unit for sampling tl. However, the known sensor does not allow for the statistical modeling a distribution function having a linear nature of change. This is due to the fact that with a linear change of the initial distribution function, the signal at the Output of the unit will not equal the error signal to zero and the output of the sample selection block will not have the specified distribution function. The purpose of the invention is to expand the functional capabilities of the sensor by providing a simulation with the linear nature of the change given by the distribution function. In order to achieve this goal, a key is additionally entered in the controlled random number sensor. 1 1 delay unit, second memory unit, second comparison unit and counter, the counting input of which is combined with the first input of the sample setting unit, and the Information output of the counter is connected to the first input of the second comparison unit, the second input of which is the sample interval input. the distribution function, and the output of the second comparison unit is connected to the counter zero input, with the read input of the second memory block and the input of the delay element, the output of which is connected to the control input of the key, the output of which is combined with the output of the first comparison unit and connected to the information input of the second memory block, the output of which is connected to the information input of the key. The drawing shows a block diagram of the sensor. The sensor contains a block of input of the distribution function, a block of 2 parallel comparison of numbers, a block of 3 memory, a block of 4 assignments, a block of 5 comparisons, a block of 6 measurements of the error signal, a block of control 7, a sensor 8 of uniformly distributed random numbers, triggers 9, blocks of 10 coincidence, output unit 11, counter 12, comparison unit 13, delay element 14, key 15, memory block 16. The control sensor of random numbers works as follows. Continuous values of a given distribution function are received from input block 1 to the first input of memory block 3, where the initial value F (Xp) is stored, which is subtracted from the subsequent current values of the distribution function. This difference is fed to the first input of block 6, built on a bridge circuit so that the output of the measuring element is a signal proportional to the degree of variability of the first derivative of a given distribution function. If the distribution function on this section varies linearly (F (X) const), then the voltage at the output of block 6 is 0. If the distribution function deviates from the direct non-zero voltage from the output of block 6, it goes to the second input of the comparison block 5 When comparing this voltage with a pre-, prime value, which is determined by the permissible error
воспроизведени Л F(X) и задаетс блоком 1 ввода, с выходом блока 5 сравнени поступает сигнал на второй вход блока 4 задани выборки и на второй вход блока 3 пам ти дл сброса его в нуль, а также на вход- блока 7 управлени . На одном из первых выходов блока 4 задани выборки по вл етс отсчет значени заданной функции распределени , в блоке 3 пам ти запоминаетс новое значение функции распределени , а с выхода блока 7 управлени на второй вход блоха 6 поступает управл ющий сигнал, который подготавливает измерительный элемент к дальнейшей работе. Значени аргумента X поступают также в счетчик 12, откуда подсчитанное значение интервала X поступает на первый вход второго блока 13 сравнени . На второй вход блока 13 с входа датчика подаетс допустимое значение интервала дискретизации Л . Если d у 7/ д , блок 13 выдает импульс на второй вход счетчика 12 дл сбрасывани его в нуль и подготовки к расчету следующего интервала дискретизации, на первый вход ключа 15 через элемент 14 задержки (дл обеспечени одновременного по влени сигналов на входах обратного ключа) и на первьш вход блока 16 пам ти. Если блок 5 сравнени -выдает сигнал на сн тие отсчета на блок 4 задани выборки за интервал d , то этот сигнал фиксируетс и в блоке 16. .Из блока 16 этот сигнал по команде блока 13 сравнени поступает на второй вход ключа 15 и закрывает его. Следовательно, команда на сн тие отсчета с блока 13 не проходит на блок 4. Когда за интервал д сигнал на сн тие отсчета с блока 5 не вьздаетс (это характерно дл длительных участков функции распределени с линейным характером изменени ), то и в блоке 16 пам ти сигнал отсутствует . Поэтому по сигналу с второго блока 13 сравнени с выхода блока 16 на ключ 15 сигнал не поступает , ключ остаетс открытым и через него поступает сигнал с выхода блока 13 через элементы 14 задержки на второй вход блока 4 задани выборки на сн тие отсчета текущего значени заданной функции распределени . Эти значени вл ютс узловыми точками заданной функции распределени .playback L F (X) and is set by the input unit 1, with the output of the comparison unit 5, a signal is sent to the second input of the sample setting unit 4 and to the second input of the memory unit 3 to reset it to zero, as well as to the input control unit 7. At one of the first outputs of block 4, a sample of the specified distribution function appears, in block 3 of memory, a new value of the distribution function is stored, and from the output of block 7 of control, the second signal of the flea 6 receives a control signal that prepares the measuring element further work. The values of the argument X are also fed to the counter 12, from where the calculated value of the interval X is fed to the first input of the second comparison unit 13. A valid value of the sampling interval L is applied to the second input of the block 13 from the sensor input. If d is 7 / d, block 13 sends a pulse to the second input of counter 12 to reset it to zero and prepare to calculate the next sampling interval to the first input of key 15 via delay element 14 (to ensure simultaneous appearance of signals at the inputs of the reverse key) and to the first input of the memory block 16. If block 5 compares a signal to drop the countdown to block 4 of the sample assignment for interval d, then this signal is recorded in block 16. From block 16, this signal is sent by the command of block 13 to the second input of key 15 and closes it. Consequently, the command to remove the count from block 13 does not go to block 4. When the signal to remove the count from block 5 fails during the interval (this is typical for long sections of the distribution function with a linear character of change), then in memory block 16 This signal is absent. Therefore, the signal from the second comparison unit 13 from the output of block 16 to the key 15 does not receive a signal, the key remains open and through it a signal comes from the output of block 13 through delay elements 14 to the second input of sample set block 4 to read the current value of the specified function distribution. These values are the nodal points of a given distribution function.
Случайные числа, снимаемые в тактовые моменты времени с датчика 8 равномерно распределенных случайных чисел, подаютс на вторые входы блока 2 параллельного сравнени чисел. На первые входы этого блока поступают соответствующие числа узловых точек заданной функции распределени с выходов блока 4 задани выборки . В результате сравнени случайных чисел с числами, снимаемыми с блока ввода, только часть выходных шин блока 2 сравнени возбуждена, а друга часть - не возбуждена. Вследствие монотонности возрастани функции распределени между возбужденной и невозбужденной част ми выходов блока сравнени существует единственна граница, котора определ етс триггерами 9 и блоком 10 совпадени . При этом из всех выходов блока 10 совпадени возбужден лишь один, определ ющий участок функции распределени в пределах которого оказалось в данный момент времени случайное равномерное распределенное число. Выходы блока совпадени возбуждают соответствующие выходные блоки 11, и на выходе управл емого датчика по вл етс случайное число, подчиненное заданному закону. В качестве выходных блоков могут .быть использованы ре- . гистры, в которых записываютс значени аргументов узловых точек функции распределени .The random numbers taken at the clock points from the sensor 8 evenly distributed random numbers are fed to the second inputs of the block 2 parallel comparison of numbers. The first inputs of this block receive the corresponding numbers of nodal points of a given distribution function from the outputs of block 4 of the sample selection. As a result of comparing random numbers with numbers taken from the input unit, only a part of the output buses of the comparison unit 2 is excited, and the other part is not excited. Due to the monotony of the increase in the distribution function between the excited and unexcited parts of the outputs of the comparison unit, there is a single boundary, which is determined by the triggers 9 and the coincidence unit 10. In this case, out of all the outputs of block 10, only one is excited, the random uniform number distributed at the moment of time defining a part of the distribution function. The outputs of the coincidence block excite the corresponding output blocks 11, and at the output of the controlled sensor there appears a random number subject to a given law. Re-. Can be used as output blocks. gistra, in which the values of the arguments of the nodal points of the distribution function are written.
В случае дискретного представлени исходной функции распределени работа управл емого датчика происходит аналогично. Отличие заключаетс в том что в данной ситуации не работают блоки 3-7 и 12-16, которые осуществл ют дискретизацию непрерывнойфункции распределени .In the case of a discrete representation of the initial distribution function, the operation of the controlled sensor occurs in a similar way. The difference lies in the fact that in this situation, blocks 3-7 and 12-16 do not work, which perform the discretization of the continuous distribution function.
Положительньш эффект изобретени заключаетс в том, что оно позвол ет в отличие от прототипа избежать пропуски при формировании узловых точек в процессе адаптивной дискретизации заданной непрерывной функции распределени , имеющей участки с линейным характером изменени и используемой в качестве исходной информации дл статистического моделировани . Это дает возможность устранить пробелы в последовательности моделируем- ix случайны : чисел,что существенно повьшает адоклатность 5тих чисел заданнойфункции распределени .The positive effect of the invention is that, unlike the prototype, it avoids gaps in the formation of nodal points in the process of adaptive discretization of a given continuous distribution function, which has sections with a linear pattern of change and is used as the initial information for statistical modeling. This makes it possible to fill in the gaps in the sequence of model-ix random: numbers, which significantly increases the adocatism of the 5 numbers of the given distribution function.