Claims (1)
:о I Изобретение относитс к вычислительной технике и может быть исполь зоБано в устройствах статистической обработки информации. Целью изобретени вл етс р асширение функциональных возможностей устройства за счет обеспечени вычислени дисперсии п(п-натуральное число) последних чисел из поступившей последовательности. На чертеже представлена структур на схема устройства. Устройство содержит генератор 1 импульсов, блок 2 делени , квадратор 3, сумматоры 4 и 5, блок 6 вы читани , счетчик 7, дешифратор 8, регистр 9, группы элементов 2И-ИЛИ 10 и 11, элементы 12-14 задержки , элемент И 15, элемент 1.6 запрета, группу элементов И 17, вхо 18 запуска устройства, информационный вход 19, вход задани числа п 20, выходы 21 и 22 значений математического ожидани и дисперсии устройства . Устройство работает следующим образом. Исходное состо ние всех элементов устройства - нулевое. При поступлении импульса на вход запуска устройства 18 в регистр 9 по входу 20 записываетс число п и начинает работу генератор 1 импульсов. Первы тактовый импульс, поступивший от ге нератора 1 импульсов, проходит чере элемент 16 запрета на вход счетчика 7, переключа его в состо ние 1, и поступает на первые вход элементов 2И-ИПИ групп 10 и 11, раз реша тем самым прохождение числа X J с информационного входа 19 через группу элементов 2И-РШИ 11 на входы квадратора 3, а через группу элементов 2И-ИЛИ 10 - на первую группу входов блока 2 делени , на вторую группу входов которого посту пает число п с выходов регистра 9. По окончании работы блока 2 делени на его выходах будет значение Х./п, которое поступает на входы сумматора 4, а на выходах квадратор 3 по окончании его работы будет зна чение X - , которое поступает на входы сумматора 5, Этот же тактовый импульс, пройд через элемент 12 за держки (на врем работы блока 2 делени и квадратора 3), поступает на 9 разрешение выдачи результата сумматоров 4 и 5. В сумматорах 4 и 5 определ етс сумма последних п чисел из поступающей последовательности. По окончании работы сумматора 4 на его выходах будет значение Z-(Xf /n), а на выходах сумматора 5 по окончании его работы будет Xj . Далее этот же тактовый импульс, пройд через элемент 13 задержки (на врем работы сумматоров 4 и 5), поступает на третьи входы элементов 2И-ИПИ групп 10 и П,разреша тем и 4 самым прохождение ZI X : с вьпсодов . ui . сумматора 5 через группу элементов 2И-ИЛИ 10 на первую, группу входов блока 2 делени (делимое), на вторую группу входов KdToporo поступает число п с выходов регистра 9 (делитель ), и Е1(Х-/п) с выходов сумматоi-1 pa 4 через группу элементов 2И-ИЛИ IIна входы квадратора 3. По окончании работы блока 2 делени на его выходах будет значение|:(Х /п ,поступающее на первую группу входов блока 6 вычитани (уменьшаемое), а на выходах квадратора 3 по окончании его работы будет значение п г (Xj/n) , поступающее на вторую группу входов блока 6 вычитани ( вычитаемое), Однако вычитание в блоке 6 вычитани не происходит, так как элемент И 15 закрыт и тактовый импульс на вход разрешени выдачи результата блока 6 вычитани не поступает. При поступлении тактовых импульсов с второго по (п-1)-й устройство работает аналогично описанному вьш1ё. п-й тактовый импульс, поступивший -от генератора I импульсов , пройд через элемент 16 запрета на счетный вход счетчика 7, переключит его в состо ние п . Это состо ние счетчика 7 дешифрируетс дешифратором 8, на выходе которого по вл етс сигнал, запрещающий поступление последующих тактовых импульсов через элемент 1б запрета на счетш 1Й вход счетчика 7, но открывающий по одному входу элемент И 15 и элементы И группы 17. Таким образом, при по- : ступлении п-го и последующих тактовых импульсов в работе устройства будут следующие изменени : а)через открытые элементы И группы 17 на выход 21 устройства по окончании работы сумматора 4 будет noctynaTb значение f (Х./п) М, где М - математическое ожидание; б)через открытый элемент И 15 и элемент 14 задержки (на врем работы блока 2 делени и квадратора 3) на. вход разрешени выдачи результат блока 6 вычитани будет поступать тактовый импульс, следовательно, на выходах блока 6 по окончании его ра f 4. J боты будет значение (Х./п)-М Д где Д - дисперси , поступающа на выход 22 устройства.,. Следовательно, начина с п-го такта работы устройства, при nocTvn лении каждого числа X, т.е. чисел г,, n.j 21 устройства будет значение математи ческого ожидани М, а на выходе 22 устройства - значение дисперсии Д п последних чисел из поступающей п следовательности. Формула изобретени Устройство дл определени дисперсии , содержащее квадратор, блок вычитани , три элемента, задержки, элемент запрета, отличающе ес тем, что, с целью расширени функциональных возможностей за сче обеспечени вычислени дисперсии п (п - натуральное число) последни чисел из поступившей последовательнос ти, в него введены генератор импульсов счетчик, регистр, группа элементов . И, блок делени , два сумматора, дешифратор , две группы элементов 2ИИЛИ , элемент И, причем вход генератора импульсов соединен с тактовым входом регистра и вл етс входом запуска устройства, выход генератора импульсов соединен с пр мым вхо- 69 элемента запрета, с первыми входами элементов 2И-ИЛИ первой и второй групп, вторые входы которых вл ютс информационным входом устройства , и через первый элемент задержки с входами разрешени выдачи результата первого и второго сумматоров и входом второго элемента задержки, выход которого соединен с третьими входами элементов 2И-ИЛИ первой и второй групп и с первым входом элемента И, второй вход которого соединен с выходом дешифратора, первыми входами элементов И группы и инверсным входом элемента запрета, выход которого соединен со счетным входом счетчика, выход которого соединен с входом дешифратораj выход элемента И через третий элемент задержки соединен с входом разрешени вьщачи результата блока вычитани , выходы которого вл ютс выходом значени дисперсии устройства, входы первой группы блока вычитани соединены .с информационными входами группы первого сумматора и подключены к выходам группы блока делени , входы первой группы которого соединены с выходами элементов 2И-ИЛИ первой группы, входы второй группы - с разр дными выходами регистра, группа информационных входов которого вл етс входом задани числа п устройства, выходы группы первого сумматора соединены с четвертыми входами элементов 2И-ИЛИ второй группы и с вторыми входами элементов И группы соответственно, выходы которых вл ютс выходом значени математического ожидани устройства , выходы элементов 2И-ИЛИ второй группы соединены с входами группы- квадратора, выходы которого соединены с входами второй группы блока вычитани и информационными входами второго сумматора , выходы группы которого соединены с четвертыми входами элементов 2 И - ИЛИ первой группы.About the invention The invention relates to computing and can be used in devices for statistical processing of information. The aim of the invention is to expand the functionality of the device by providing a calculation of the variance n (n-a natural number) of the last numbers from the received sequence. The drawing shows the structures on the device diagram. The device contains a pulse generator 1, block 2 division, quad 3, adders 4 and 5, block 6 you read, counter 7, decoder 8, register 9, groups of elements 2И-OR 10 and 11, delay elements 12-14, element 15 , a prohibition element 1.6, a group of elements And 17, a device start input 18, an information input 19, a number p input input 20, a outputs 21 and 22 values of the mathematical expectation and dispersion of the device. The device works as follows. The initial state of all elements of the device is zero. When a pulse arrives at the start-up input of the device 18 into register 9, input n records the number n and the pulse generator 1 starts its operation. The first clock pulse received from generator 1 of pulses passes through element 16 of the prohibition on the input of counter 7, switching it to state 1, and arrives at the first input of elements 2I – IPI groups 10 and 11, thereby solving the passage of the number XJ c information input 19 through the group of elements 2I-RSHI 11 to the inputs of Quad 3, and through the group of elements 2I-OR 10 - to the first group of inputs of division 2, the second group of inputs of which receives the number n from the outputs of the register 9. When the unit ends 2 divisions on its outputs will be the value of H. / n, which is stubs to the inputs of the adder 4, and the outputs of the quadrant 3 at the end of its work will be the value of X -, which is fed to the inputs of the adder 5, This same clock pulse passed through the element 12 for support (for the duration of the unit 2 division and quadrant 3) , arrives at 9 resolution of outputting the result of adders 4 and 5. In adders 4 and 5, the sum of the last n numbers from the incoming sequence is determined. At the end of the operation of the adder 4, its outputs will have the value of Z- (Xf / n), and the outputs of the adder 5 at the end of its operation will be Xj. Further, the same clock pulse, passing through the delay element 13 (for the duration of the operation of adders 4 and 5), goes to the third inputs of the 2I-IPI groups of groups 10 and P, allowing those 4 most passing ZI X: from the transceivers. ui. adder 5 through the group of elements 2И-OR 10 to the first group of inputs of dividing unit 2 (divisible), the second group of inputs KdToporo receives the number n from the outputs of register 9 (divider), and Е1 (X- / n) from the outputs sumi-1 pa 4 through the group of elements 2И-OR II to the inputs of the quad 3. At the end of the operation of block 2, the division at its outputs will be |: (X / n supplied to the first group of inputs of subtraction unit 6 (decreasing), and at the outputs of quad 3 at the end his work will be the value of p r (Xj / n), arriving at the second group of inputs of block 6 subtraction (subtracted), However, you The output in subtraction unit 6 does not occur, since the AND 15 element is closed and the clock pulse does not arrive at the input of the output of the result of the subtraction unit 6. Upon receipt of the clock pulses from the second through (n-1) device, it works in the same way as described above. The first clock pulse received from the generator I of pulses, having passed through the prohibition element 16 to the counting input of counter 7, switches it to the state n. This state of the counter 7 is decrypted by the decoder 8, at the output of which a signal appears that prohibits the arrival of subsequent clock pulses through the prohibition element 1b on the 1st input of the counter 7, but the element 15 that opens one input And the elements And group 17. Thus, at the arrival of the nth and subsequent clock pulses in the operation of the device there will be the following changes: a) through the open elements AND of group 17 to the output 21 of the device after the termination of the operation of the adder 4 there will be noctynaTb the value f (Х. / п) М, where М - expected value; b) through the open element And 15 and the element 14 delay (for the time of operation of the unit 2 divisions and quadrs 3) on. the output of the output of the result of block 6 subtraction will receive a clock pulse, therefore, at the outputs of block 6 after its completion f 4. J bots will be the value (X./n) -M D where D is the dispersion received at the output 22 of the device. . Therefore, starting with the n-th cycle of operation of the device, with nocTvn of each number X, i.e. The numbers g ,, n.j 21 of the device will be the value of the expectation M, and the output 22 of the device will have the dispersion value D n of the last numbers from the incoming sequence. An apparatus for determining a dispersion, comprising a quad, a subtraction unit, three elements, delays, a prohibition element, characterized in that, in order to extend the functionality by calculating the dispersion n (n is the natural number) of the last numbers of the received sequence , impulse counter, register, group of elements are entered into it. And, dividing unit, two adders, decoder, two groups of elements 2IILI, element AND, the input of the pulse generator is connected to the clock input of the register and is the device start input, the output of the pulse generator is connected to the direct input of the prohibition element 69, with the first inputs elements 2I-OR of the first and second groups, the second inputs of which are the information input of the device, and through the first delay element with the enable inputs of the output of the result of the first and second adders and the input of the second delay element whose output is n with the third inputs of elements 2И-OR of the first and second groups and with the first input of the element I, the second input of which is connected to the output of the decoder, the first inputs of the elements of the group AND and the inverse input of the prohibition element whose output is connected to the counting input of the counter, the output of which is connected to the input of the decoder j output element And through the third delay element connected to the input resolution of the result of the subtraction unit, the outputs of which are the output value of the dispersion device, the inputs of the first group of the subtraction unit are connected. The information inputs of the group of the first adder and connected to the outputs of the group of the dividing unit, the inputs of the first group of which are connected to the outputs of the 2I-OR elements of the first group, the inputs of the second group - with the register's binary outputs, the group of information inputs of which are the input of the number n device, the groups of the first adder are connected to the fourth inputs of the 2I-OR elements of the second group and to the second inputs of the AND elements of the group, respectively, the outputs of which are the output of the mathematical expectation value of the device , the outputs of the 2I-OR elements of the second group are connected to the inputs of the quadrant group, the outputs of which are connected to the inputs of the second group of the subtraction unit and the information inputs of the second adder, the outputs of the group of which are connected to the fourth inputs of the 2 AND-OR elements of the first group.