SU1278889A1 - Device for determining median - Google Patents

Device for determining median Download PDF

Info

Publication number
SU1278889A1
SU1278889A1 SU853936699A SU3936699A SU1278889A1 SU 1278889 A1 SU1278889 A1 SU 1278889A1 SU 853936699 A SU853936699 A SU 853936699A SU 3936699 A SU3936699 A SU 3936699A SU 1278889 A1 SU1278889 A1 SU 1278889A1
Authority
SU
USSR - Soviet Union
Prior art keywords
output
input
register
numbers
control unit
Prior art date
Application number
SU853936699A
Other languages
Russian (ru)
Inventor
Владислав Федорович Кашин
Юрий Иванович Кузьмин
Рамиз Азизович Шейхов
Original Assignee
Научно-Производственное Объединение Космических Исследований При Ан Азсср
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Научно-Производственное Объединение Космических Исследований При Ан Азсср filed Critical Научно-Производственное Объединение Космических Исследований При Ан Азсср
Priority to SU853936699A priority Critical patent/SU1278889A1/en
Application granted granted Critical
Publication of SU1278889A1 publication Critical patent/SU1278889A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс  к специализированным средствам вычислительной техники, с помощью которых решаетс  задача нахождени  медианы. Цель изобретени  - повьшение быстродействи  устройства. С этой целью в устройство введены суммирующий и вычитающий счетчики, выходной регистр . Устройство позвол ет обрабатывать все числа выборки параллельно . 1 3.п. ф-лы,3 ил.The invention relates to specialized computer facilities by which the task of finding the median is solved. The purpose of the invention is to increase the speed of the device. For this purpose, summing and subtracting counters, an output register, are entered into the device. The device allows all sample numbers to be processed in parallel. 1 3.p. f-ly, 3 ill.

Description

Изобретение относитс  к специализированным средствам вычислительной техники и может найти применение при статистической обработке информации .The invention relates to specialized means of computing and can be used in the statistical processing of information.

Цель изобретени  - повьппение быстродействи  устройства за счет параллельного анализа чисел выборки.The purpose of the invention is to increase the speed of the device due to the parallel analysis of the sample numbers.

На фиг,1 приведена структурна  схема устройства дл  определени  медианы; на фиг.2 - структурна  схема источника чисел; на фиг.З - структурна  схема блока управлени .Fig. 1 is a block diagram of a device for determining the median; figure 2 - structural diagram of the source numbers; FIG. 3 is a block diagram of the control unit.

Устройство дл  определени  медианы (фиг.О содержит источник 1 чисел, блок 2 управлени , блок 3 анализа чисел, п компараторов А, злемент ИЛИ 5, регистр 6 и элемент И 7 первый счетчик 8, второй счетчик 9 и выходной регистр 10.A device for determining the median (Fig. O) contains a source of 1 numbers, a control block 2, a block 3 for analyzing numbers, n Comparators A, an element OR 5, a register 6 and an AND 7 element first counter 8, second counter 9 and output register 10.

Источник чисел (фиг,2) содержит п регистров выборки, регистр 12 числа и группы элементов И 13 по числу разр дов регистров П и 12,The source of numbers (FIG. 2) contains n sample registers, the number register 12 and the group of elements And 13 according to the number of bits of the registers P and 12,

Блок управлени  (cjiHr.B} содержит генератор 14 тактовых импульсов, триггеры 15-17, четыре элемента 1821 задержки и элемент И 22,The control unit (cjiHr.B} contains a generator of 14 clock pulses, triggers 15-17, four delay elements 1821 and element 22,

Устройство работает следующим образом ,The device works as follows

В исходном состо нии на пр мых выходах триггеров 15-17 блока 2 управлени  высокий уровень сигнала. Регистр 6 блока 3 анализа чисел, выходной регистр 10 и счетчики 8 и 9 обнулены, В каждом из п регистров 11 выборки наход тс  числа выборки, а в регистре 12 числа находитс  число (п+1)/2.In the initial state, the direct outputs of the triggers 15-17 of the control unit 2 have a high signal level. Register 6 of block 3 of analysis of numbers, output register 10 and counters 8 and 9 are zero, sample numbers are in each of reg registers 11, and number (n + 1) / 2 is in register 12 of number.

При подаче импульса Пуск на установочный вход триггера 15 на его инверсном выходе по вл етс  высокий уровень сигнала, поступающий на вход элемента 18 задержки, второй вход элемента И 22 и на вторые входы элементов И 13 источника 1 чисел, С приходом высокого уровн  сигнала на вторые входы элементов И 13 разрешаетс  параллельное прохождение чисел, установленных в ti регистрах 11 выборки и регистре 12 числа, на выход источника 1 числа. Эти числа поступают соответственно на первые входы компараторов 4 и информационный вход счетчика 8, Кодова  комбинаци  числа (п-«-1)/2 с регистра 12 числа заноситс  к счетчик 8 по приходу импульса разрешени  записи блока 2When applying a pulse to the setup input of the trigger 15, a high signal level appears at its inverse output, arriving at the input of delay element 18, second input of And 22 element and second inputs of And 13 source of 1 numbers, With the arrival of a high signal level at second the inputs of the elements And 13 is allowed parallel passage of the numbers set in ti registers 11 sampling and register 12 numbers, the output of the source 1 number. These numbers are received respectively at the first inputs of the comparators 4 and the information input of the counter 8;

управлени . Этот импульс формируетс  элементом 18 задержки из фронта сиг .нала с инверсного выхода триггера 15 с задержкой его по влени  на врем , необходимое дл  установки кода числа ()/2 на информационных входах счетчика 8, Высокий уровень сигнала , поступающий с выхода триггера 15 на первый вход элемента И 22, разрешает прохождение тактовых импульсов с генератора 14 на счетный вход счетчика (9 через элемент И 22, так как на его третьем и четвертом входах присутствуют высокие уровни сигналов . На разр дном выходе счетчика 9 формируетс  возрастающий разр дный код числа, поступающий на вторые входы п компараторов 4 и на входы выходного регистра 10, на входе запрета записи которого присутствует низкий уровень сигнала, поступающий с инверсного выхода триггера 16 блока 2 управлени , который запрещает запись в этот регистр 10, При равенстве одной или нескольких кодовых комбинаций чисел выборки с кодовой комбинацией числа, сформированной на выходе счетчика 9, на одном или нескольких выходах коМпараторов.management This pulse is formed by the delay element 18 from the front of the signal from the inverse output of the trigger 15 with its delay by the time required to set the number code () / 2 at the information inputs of the counter 8, High signal level, coming from the output of the trigger 15 to the first the input element And 22, allows the passage of clock pulses from the generator 14 to the counting input of the counter (9 through the element And 22, since its third and fourth inputs contain high signal levels. At the bit output of the counter 9, an increasing bit is formed the second code of the number, coming to the second inputs of the n comparators 4 and to the inputs of the output register 10, at the input of the recording prohibition of which there is a low level signal coming from the inverse output of the trigger 16 of the control unit 2, which prohibits writing to this register 10, with one or several code combinations of sample numbers with a code combination of the number formed at the output of counter 9 on one or several outputs of compressors.

4 по вл ютс  высокие уровни сигналов , которые поступают на информационный вход регистра 6, Запись этой информации в регистр 6производитс  сигналом с е5лока 2 управлени  в момент прихода на вход разрешени  записи тактового импульса с генератора 14, так как на его входе разрешени  сдвига находитс  высокий уровень сигнал-а с пр мого выхода триггера 17,4 High levels of signals appear that are fed to the information input of register 6. This information is recorded in register 6 by the signal from control unit 2 at the moment when the clock pulse input from the generator 14 arrives at the input, since the high resolution is at its shift resolution input signal-a from the direct output of the trigger 17,

прошедшего через элемент 20 задержки . Высокие уровни сигналов с выходов компараторов поступают также на .элемент ИЛИ 5, на инверсном выходе которого в этот момент по вл етс passed through the delay element 20. High levels of signals from the outputs of the comparators also arrive at the .OR element 5, at the inverse output of which at this moment appears

сигнал низкого уровн , который поступает на установочный вход триггера 17, По этому сигналу триггер 17 устанавливаетс  в нулевое состо ние. Перепад с его инверсного выхода поступает на вход элемента 21 задержки с задержкой его по влени  на выходе на (п+1) периодов тактовых импульсов С пр мого выхода триггера 17 низкий уровень сигнала поступаетa low level signal that arrives at the setup input of the trigger 17. By this signal, the trigger 17 is set to the zero state. The differential from its inverse output enters the input of the delay element 21 with its delay at the output of (n + 1) periods of clock pulses From the direct output of the trigger 17 a low signal level arrives

на четвертый вход элемента И 22, запреща  прохождение тактовых импульсов с генератора 14 на выход блока 2 управлени , и через элемент 20on the fourth input element And 22, prohibiting the passage of clock pulses from the generator 14 to the output of the control unit 2, and through the element 20

3131

задержки с задержкой его по влени  на врем , равное 1,5 периодам тактовых импульсов и длительностью отрицательного импульса, сформированного элементом 20 задержки, равной ((п+1)-1,5) периода тактовых импульсов , необходимой на сдвиг записанной в регистре 6 информации, поступает на вход разрешени  сдвига регистра 6, разреша  сдвиг записанной в нем информации. С выхода элемента И 7 информаци  поступает на вычитаюпщй вход счетчика 8, уменьша  записанное в нем число ()/2, каждым тактовым импульсом на число совпадений на выходах компараторов 4. После вычитани  выдвинутой информации за п периодов тактовой частоты, записанной в регистре 6 из числа записанного в счетчике 8, на выходе элемента 21 задержки, в котором осуществл етс  задержка на (п+1) периодов тактовых импульсов, формируетс  импульс сброса, поступающий на вход сброса триггера I7, устанавлива  его в исходное состо ние. Высокий уровень сигнала с пр мого выхода триггера 17 через элемент 20 задержки поступает на вход разрешени  сдвига регистра 6, запреща  режим сдвига и устанавлива  режим записи в регистр 6, и на четвертый вход элемент И 22, разреша  прохождение тактовых импульсов на счетный вход счетчика 9, который продолжает увеличивать разр дный код числа до его очередного совпадени  с кодовой комбинацией одного или нескольких чисел выборки. Таким образом , продсшжает функционирование устройство аналогично описанному и такой режим работы устройства продолжаетс  до тех пор, пока на выходе счетчика 8 не по витс  импульс обнулени  его содержимого. По вление на выходе счетчика 8 импульса обнулени  свидетельствует о прохождении операции сравнени  (п+1)/2 чисел из выборки и окончании функции анализа чисел, следовательно, на выходе счетчика 9 сформировалс  разр дный код числа медианы.delays with a delay of its occurrence by a time equal to 1.5 periods of clock pulses and a duration of a negative pulse formed by a delay element 20 equal to ((n + 1) -1.5) the period of clock pulses required to shift the information recorded in register 6 It enters the input of the resolution of the shift of the register 6, allowing the shift of the information recorded in it. From the output of the element And 7 information goes to the subtracting input of the counter 8, reducing the number () / 2 recorded in it by each clock pulse by the number of matches at the outputs of the comparators 4. After subtracting the pushed information for n periods of the clock frequency recorded in register 6 of recorded in the counter 8, at the output of the delay element 21, in which a delay of (n + 1) periods of clock pulses takes place, a reset pulse is input to the reset input of trigger I7, setting it to its initial state. The high signal level from the direct output of the trigger 17 through the delay element 20 enters the input of the shift register 6, prohibits the shift mode and sets the recording mode to the register 6, and the And 22 element on the fourth input, allowing the passage of clock pulses to the counting input of the counter 9, which continues to increment the digit code of a number until it next matches the code combination of one or more sample numbers. Thus, the device progresses as in the manner described above, and this mode of operation of the device continues until the output of the counter 8 does not show an impulse to zero its contents. The occurrence of a zero pulse at the output of the counter 8 indicates that the comparison operation (n + 1) / 2 numbers from the sample and the end of the function of the analysis of numbers has passed; therefore, the discharge code of the median number has formed at the output of the counter 9.

Импульс обнулени  с выхода счетчика 8 поступает на первый вход триггера 16, устанавлива  его в нулевое состо ние . С пр мого выхода триггера 16 иизкий уровень сигнала поступает на третий вход элемента И 22, запреща  прохождение тактовых импульсов через элемент И 22 на счетчик 9. СThe zeroing pulse from the output of the counter 8 arrives at the first input of the trigger 16, setting it to the zero state. From the direct output of the trigger 16, the low level of the signal arrives at the third input of the And 22 element, prohibiting the passage of clock pulses through the And 22 element to the counter 9. C

8889488894

инверсного выхода триггера 16 йысокий уровень сигнала поступает,на вход запрета записи выходного регистра 10, разреша  запись кода числа г медианы с разр дных выходов счелчика 9 в выходной регистр 10 по фронту тактового импульса, поступающего на вход разрешени  записи с генератора 14. С выходов регистра 10 считывает0 с  медианное значение числа. С инверсного выхода триггера 16 высокий уровень сигнала поступает на элемент 19 задержки, где задерживаетс  на 2 периода тактовых импульсов. Эле5 мент 19 задержки формирует сигнал сброса триггеров 15 и 16 счетчиков 8 и 9 и регистров 6 и 10. После чего устройство готово к очередной обработке выборки чисел.inverse trigger output 16, a high signal level arrives at the prohibition input of the output register 10, allowing the code of the median number r from the bit outputs of the meter 9 to be written to the output register 10 on the clock edge of the clock input to the recording enable input from the generator 14. From the register outputs 10 reads 0s the median value of the number. From the inverted trigger output 16, a high signal level arrives at a delay element 19, where it is delayed by 2 periods of clock pulses. Element 19 delay forms a reset signal for triggers 15 and 16 of counters 8 and 9 and registers 6 and 10. After that, the device is ready for the next processing of a sample of numbers.

Claims (2)

Формула изобретени Invention Formula Устройство дл  определени  медианы , содержащее источник чисел, блокA median device containing a source of numbers, a block 5 управлени , блок анализа чисел, состо щий из первого компаратора, регистра и элемента И, первый выход блока управлени  соединен с входом разрешени  выдачи чисел источника5 control, a number analysis unit consisting of a first comparator, a register and an AND element, the first output of the control unit is connected to the input of issuing source numbers 0 чисел, выход кода первого числа группы которого соединен с первым входом первого компаратора, второй выход блока управлени  соединен с первым входом элемента И блока анализа чи5 сел, отличающеес  тем, что, с целью повьш1ени  быстродействи , в него введены первый и второй счетчики и выходной регистр, а в блок анализа чисел введеньт элементы0 numbers, the output of the code of the first number of the group of which is connected to the first input of the first comparator, the second output of the control unit is connected to the first input of the element AND of the block of chi analysis, characterized in that, in order to improve speed, the first and second counters and output register, and in the block of the analysis of numbers introduce the elements 0 ИЛИ и (п-1) (п - нечетное число чисел в выборке) компараторов, блок управлени  содержит генератор тактовых импульсов , три триггера, четыре элемента задержки и элемент И, вход0 OR and (p-1) (n is an odd number of numbers in the sample) of comparators, the control unit contains a clock pulse generator, three triggers, four delay elements and an AND element, input 5 установки первого триггера блока управлени   вл етс  входом запуска устройства, инверсный выход первого триггера соединен с первым входом элемента И блока управлени  через5, the installation of the first trigger of the control unit is the device start input, the inverse output of the first trigger is connected to the first input of the control unit AND via 0 первый элемент задержки - с входом разрешени  записи первого счетчика и  вл етс  первым выходом блока управлени , выход элемента И которого соединен со счетным входом второ5 го счетчика, инверсный выход второго триггера соединен с входом запрета записи выходного регистра и через второй элемент задержки - с входами сброса перв.ого и второго триггеров. первого и второго счетчиков, выходного регистра и регистра, выход генератора тактовых импульсов соединен с вторым входом элемента И блока управлени j с входами разрешени  записи выходного регистра и регистра и  вл етс  вторым выходом блока управ лени , пр мой выход третьего триггера соединен с третьим входом элемента И блока упра;влени  и через третий элемент задержки - с входом разрешени  сдвига регистра, выход элемента ИЛИ соединен с входом установки в единицу третьего триггера, инверсный выход которого через четвертый элемент задержки соединен со своим входом сброса второго триггера, пр мой выход которого соединен с четвертым входом элемента И блока управлени , выходы кодов с 2-го по п-е чисел группы источника чисел соединены с первыми входами соответствующих компараторов , выход кода регистра числа источника чисел соединен с информационным входом первого счетчика, раз р дные выходы второго .счетчика ; соединены соответственно с вторыми вхо дами всех компараторов и с информационным входом выходного регистра, выход которого  вл етс  выходом устройства , выходы компараторов соединены с соответствующими входами элемента ИЛИ и с информационными входами регистра соответственно, выход регистра соединен с вторым входом элемента И блока анализа чисел, выход которого соединен со счетным входом первого счетчика. 0 the first delay element is with the write enable input of the first counter and is the first output of the control unit, the output of the element And of which is connected to the counting input of the second counter, the inverse output of the second trigger is connected to the input of the write inhibit of the output register and through the second delay element with the inputs reset the first and second triggers. the first and second counters, the output register and the register, the output of the clock pulse generator is connected to the second input of the control unit AND j with the write enable entries of the output register and the register and is the second output of the control unit; the third output of the third trigger is connected to the third input of the element And the control unit and through the third delay element - with the register shift enable input, the output of the OR element is connected to the installation input into the unit of the third trigger, the inverse output of which through the fourth element The relay is connected to its reset input of the second trigger, the direct output of which is connected to the fourth input of the control unit AND, the output codes from the 2nd to the fifth numbers of the number source group are connected to the first inputs of the corresponding comparators, the output of the number source number register is connected with the information input of the first counter, separate outputs of the second counter; are connected respectively to the second inputs of all comparators and to the information input of the output register, the output of which is the device output, the outputs of the comparators are connected to the corresponding inputs of the OR element and to the information inputs of the register respectively, the output of the register is connected to the second input of the AND number analysis unit, the output which is connected to the counting input of the first counter. 2. Устройство по П.1, отличающеес  тем, что источник , чисел содержит п регистров выборки, регистр числа и (n+l) групп элвмен тов И, причем первые входы элементов И каждой из п групп соединены с выxoдa fi : разр дов одноименного регистрз выборки, первые входы элементов И (п+1)-й группы соединены с выходами соответствующих разр дов регистра числа, вторые входы элементов И всех групп  вл ютс  входом разрешени  выдачи чисел источника, выходы элементов И всех групп  вл ютс  группой выходов кодов (п+1) чисел источника.2. The device according to claim 1, characterized in that the source of numbers contains n sample registers, a register of numbers and (n + l) groups of EL, and the first inputs of the elements AND of each of the n groups are connected to output fi: bits of the same name the sampling registers, the first inputs of the And (n + 1) -th group elements are connected to the outputs of the corresponding register bits of the number, the second inputs of the And elements of all groups are the resolution of issuing source numbers, the outputs of the And elements of all groups are a group of code outputs ( +1) source numbers. /У2. // Y2. /
SU853936699A 1985-07-26 1985-07-26 Device for determining median SU1278889A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU853936699A SU1278889A1 (en) 1985-07-26 1985-07-26 Device for determining median

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU853936699A SU1278889A1 (en) 1985-07-26 1985-07-26 Device for determining median

Publications (1)

Publication Number Publication Date
SU1278889A1 true SU1278889A1 (en) 1986-12-23

Family

ID=21191673

Family Applications (1)

Application Number Title Priority Date Filing Date
SU853936699A SU1278889A1 (en) 1985-07-26 1985-07-26 Device for determining median

Country Status (1)

Country Link
SU (1) SU1278889A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР 492882, кл. G 06 F 15/36, 1974. Авторское свидетельство СССР № 607226, кл. G 06 F 15/36, 1975. *

Similar Documents

Publication Publication Date Title
SU1278889A1 (en) Device for determining median
SU1188696A1 (en) Digital meter of time interval ratio
SU1709310A1 (en) Frequency multiplier
SU955031A1 (en) Maximum number determination device
SU1608657A1 (en) Code to probability converter
SU1267433A1 (en) Statistical analyzer of distribution of time intervals
SU1310822A1 (en) Device for determining the most significant digit position
SU1444738A1 (en) Timer
SU1434430A1 (en) Generator of uniformly distributed random numbers
SU1368853A1 (en) Device for measuring time intervals
SU1046935A1 (en) Scaling device
SU455244A2 (en) Information processing device
SU913325A1 (en) Digital meter of digital magnetic recording time intervals
SU1410033A1 (en) Logical analyzer
SU1148116A1 (en) Polyinput counting device
SU1319262A1 (en) Device for delaying pulses
SU1183955A1 (en) Device for searching given number
SU1120320A1 (en) Device for calculating square and square root
SU1522189A1 (en) Device for information input
SU1562966A1 (en) Device for selection of asynchronous signals on basis of criterion "m out of n"
SU1270762A1 (en) Information output device
SU993461A1 (en) Pulse repetition frequency multiplier
SU1300459A1 (en) Device for sorting numbers
SU1163334A1 (en) Device for calculating ratio of time intervals
RU1795458C (en) Device for sequential extraction of ones from binary code