<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=202.0.58.0%2F24</id>
	<title>formulasearchengine - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=202.0.58.0%2F24"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/wiki/Special:Contributions/202.0.58.0/24"/>
	<updated>2026-07-09T08:29:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.47.0-wmf.7</generator>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Rogowski_coil&amp;diff=3246</id>
		<title>Rogowski coil</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Rogowski_coil&amp;diff=3246"/>
		<updated>2013-05-30T06:13:38Z</updated>

		<summary type="html">&lt;p&gt;202.0.58.154: /* Advantages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Unary coding&#039;&#039;&#039;, sometimes called &#039;&#039;&#039;thermometer code&#039;&#039;&#039;, is an [[entropy encoding]] that represents a [[natural number]], &#039;&#039;n&#039;&#039;, with &#039;&#039;n&#039;&#039; ones followed by a zero (if &#039;&#039;natural number&#039;&#039; is understood as &#039;&#039;non-negative integer&#039;&#039;) or with &#039;&#039;n&#039;&#039;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 ones followed by a zero (if &#039;&#039;natural number&#039;&#039; is understood as &#039;&#039;strictly positive integer&#039;&#039;).  For example 5 is represented as 111110 or 11110. Some representations use &#039;&#039;n&#039;&#039; or &#039;&#039;n&#039;&#039;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 zeros followed by a one. The ones and zeros are interchangeable without loss of generality. Unary coding is both a [[Prefix-free code]] and a [[Self-synchronizing code]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;n (non-negative)&amp;lt;th&amp;gt;n (strictly positive)&amp;lt;th&amp;gt;Unary code&amp;lt;th&amp;gt;Alternative&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;0&amp;lt;td&amp;gt;1&amp;lt;td&amp;gt;0&amp;lt;td&amp;gt;1&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;1&amp;lt;td&amp;gt;2&amp;lt;td&amp;gt;10&amp;lt;td&amp;gt;01&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;2&amp;lt;td&amp;gt;3&amp;lt;td&amp;gt;110&amp;lt;td&amp;gt;001&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;3&amp;lt;td&amp;gt;4&amp;lt;td&amp;gt;1110&amp;lt;td&amp;gt;0001&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;4&amp;lt;td&amp;gt;5&amp;lt;td&amp;gt;11110&amp;lt;td&amp;gt;00001&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;5&amp;lt;td&amp;gt;6&amp;lt;td&amp;gt;111110&amp;lt;td&amp;gt;000001&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;6&amp;lt;td&amp;gt;7&amp;lt;td&amp;gt;1111110&amp;lt;td&amp;gt;0000001&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;7&amp;lt;td&amp;gt;8&amp;lt;td&amp;gt;11111110&amp;lt;td&amp;gt;00000001&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;8&amp;lt;td&amp;gt;9&amp;lt;td&amp;gt;111111110&amp;lt;td&amp;gt;000000001&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;9&amp;lt;td&amp;gt;10&amp;lt;td&amp;gt;1111111110&amp;lt;td&amp;gt;0000000001&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unary coding is an optimally efficient encoding for the following discrete [[probability distribution]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{P}(n) = 2^{-n}\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for &amp;lt;math&amp;gt;n=1,2,3,...&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In symbol-by-symbol coding, it is optimal for any [[geometric distribution]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{P}(n) = (k-1)k^{-n}\,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for which &#039;&#039;k&#039;&#039; &amp;amp;ge; &amp;amp;phi; = 1.61803398879&amp;amp;hellip;, the [[golden ratio]], or, more generally, for any discrete distribution for which&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\operatorname{P}(n) \ge \operatorname{P}(n+1) + \operatorname{P}(n+2)\, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for &amp;lt;math&amp;gt;n=1,2,3,...&amp;lt;/math&amp;gt;.  Although it is the optimal symbol-by-symbol coding for such probability distributions, [[Golomb coding]] achieves better compression capability for the geometric distribution because it does not consider input symbols independently, but rather implicitly groups the inputs.  For the same reason, [[arithmetic encoding]] performs better for general probability distributions, as in the last case above.&lt;br /&gt;
&lt;br /&gt;
==Unary code in use today==&lt;br /&gt;
Examples of unary code uses include:&lt;br /&gt;
* In [[Golomb Rice code]], unary encoding is used to encode the quotient part of the Golomb code word.&lt;br /&gt;
* In [[UTF-8]], unary encoding is used in the leading byte of a multi-byte sequence to indicates the number of bytes in the sequence, so that the length of the sequence can be determined without examining the continuation bytes.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Unary numeral system]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
*Khalid Sayood, &#039;&#039;Data Compression&#039;&#039;, 3rd ed, Morgan Kaufmann.&lt;br /&gt;
*Professor K.R Rao, EE5359:&#039;&#039;Principles of Digital Video Coding&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
{{Compression Methods}}&lt;br /&gt;
[[Category:Coding theory]]&lt;br /&gt;
[[Category:Data compression]]&lt;br /&gt;
[[Category:Lossless compression algorithms]]&lt;/div&gt;</summary>
		<author><name>202.0.58.154</name></author>
	</entry>
</feed>