<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nerd Rage</title>
	<atom:link href="http://www.marcuswinter.de/feed" rel="self" type="application/rss+xml" />
	<link>http://www.marcuswinter.de</link>
	<description>the blog of Marcus Winter</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:22:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>O’ahu, Hawai’i</title>
		<link>http://www.marcuswinter.de/archives/1624</link>
		<comments>http://www.marcuswinter.de/archives/1624#comments</comments>
		<pubDate>Sat, 04 Feb 2012 17:22:04 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1624</guid>
		<description><![CDATA[Final stop: O’ahu. Waikiki is just a tourist trap, but fortunately O’ahu has more to offer than crowded beaches, shops and Asian food. Here’s proof:]]></description>
			<content:encoded><![CDATA[<p id="top" />Final stop: O’ahu. Waikiki is just a tourist trap, but fortunately O’ahu has more to offer than crowded beaches, shops and Asian food. Here’s proof:</p>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646535587/" title="looking eastwards from Pali Overlook, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7156/6646535587_15b18ce02a.jpg" width="500" height="170" alt="looking eastwards from Pali Overlook, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">looking eastwards from Pali Overlook, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646966307/" title="Moli'i Pond seen from Kualoa Ranch, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7159/6646966307_a95d3e3434.jpg" width="500" height="206" alt="Moli'i Pond seen from Kualoa Ranch, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">Moli'i Pond seen from Kualoa Ranch, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646963175/" title="Chinaman's Hat (Mokolii) seen from Kualoa Regional Park, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7165/6646963175_5dfd1399f1.jpg" width="500" height="156" alt="Chinaman's Hat (Mokolii) seen from Kualoa Regional Park, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">Chinaman's Hat (Mokolii) seen from Kualoa Regional Park, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646961207/" title="Kualoa Regional Park, O'ahu, Hawai'i by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7033/6646961207_72e67e42c1.jpg" width="500" height="217" alt="Kualoa Regional Park, O'ahu, Hawai'i"/></a><p class="wp-caption-text">Kualoa Regional Park, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646534173/" title="Hanauma Bay, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7019/6646534173_f3128584cb.jpg" width="500" height="175" alt="Hanauma Bay, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">Hanauma Bay, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646532093/" title="USS Arizona, Pearl Harbor, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7007/6646532093_737134c440.jpg" width="500" height="224" alt="USS Arizona, Pearl Harbor, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">USS Arizona, Pearl Harbor, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646530229/" title="Waikiki seen from Diamond Head, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7164/6646530229_e18d3b3050.jpg" width="500" height="190" alt="Waikiki seen from Diamond Head, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">Waikiki seen from Diamond Head, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646528501/" title="Diamond Head crater, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7145/6646528501_4cee7c1cca.jpg" width="500" height="222" alt="Diamond Head crater, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">Diamond Head crater, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646526475/" title="eastward view outside Diamond Head, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7026/6646526475_6f879f7f26.jpg" width="500" height="218" alt="eastward view outside Diamond Head, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">eastward view outside Diamond Head, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646471159/" title="dusk over Waikiki, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7035/6646471159_a3583fd349.jpg" width="500" height="274" alt="dusk over Waikiki, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">dusk over Waikiki, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646468689/" title="morning view of Waikiki, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7172/6646468689_d5b20a7271.jpg" width="500" height="217" alt="morning view of Waikiki, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">morning view of Waikiki, O'ahu, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6646466205/" title="downtown Honolulu, O'ahu, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7017/6646466205_b4f5d0c664.jpg" width="500" height="360" alt="downtown Honolulu, O'ahu, Hawai'i (panorama)"/></a><p class="wp-caption-text">downtown Honolulu, O'ahu, Hawai'i (panorama)</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1624/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maui, Hawai’i</title>
		<link>http://www.marcuswinter.de/archives/1614</link>
		<comments>http://www.marcuswinter.de/archives/1614#comments</comments>
		<pubDate>Thu, 19 Jan 2012 18:19:53 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1614</guid>
		<description><![CDATA[After a week on the Big Island, we headed over to Maui. Here are some panoramic highlights…  ]]></description>
			<content:encoded><![CDATA[<p id="top" />After a week on the Big Island, we headed over to Maui. Here are some panoramic highlights…</p>
<p> </p>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6351251884/" title="Kihei beach, Maui, Hawai'i by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6212/6351251884_d06f411df2.jpg" width="500" height="198" alt="Kihei beach, Maui, Hawai'i"/></a><p class="wp-caption-text">Kihei beach, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6350617013/" title="sunrise over Haleakala crater, Maui, Hawai'i (panorama, DRI) by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6034/6350617013_9658813ba4.jpg" width="500" height="207" alt="sunrise over Haleakala crater, Maui, Hawai'i (panorama, DRI)"/></a><p class="wp-caption-text">sunrise over Haleakala crater, Maui, Hawai'i (panorama, DRI)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6362672541/" title="Science City, Haleakala summit, Maui, Hawai'i by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6111/6362672541_c8f462ed0b.jpg" width="500" height="118" alt="Science City, Haleakala summit, Maui, Hawai'i"/></a><p class="wp-caption-text">Science City, Haleakala summit, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6362688115/" title="Haleakala Crater, Maui, Hawai'i by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6112/6362688115_95eb68949a.jpg" width="500" height="158" alt="Haleakala Crater, Maui, Hawai'i"/></a><p class="wp-caption-text">Haleakala Crater, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6370336667/" title="Iao Valley, Maui, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6041/6370336667_c04d837e5a.jpg" width="500" height="248" alt="Iao Valley, Maui, Hawai'i (panorama)"/></a><p class="wp-caption-text">Iao Valley, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6362708349/" title="Iao Needle, Maui, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6217/6362708349_a5b5dd5ea6.jpg" width="500" height="256" alt="Iao Needle, Maui, Hawai'i (panorama)"/></a><p class="wp-caption-text">Iao Needle, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6370762581/" title="creek in Iao Valley, Maui, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6103/6370762581_ea6dfed410.jpg" width="500" height="255" alt="creek in Iao Valley, Maui, Hawai'i (panorama)"/></a><p class="wp-caption-text">creek in Iao Valley, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6370839459/" title="somewhere on the Road to Hana, Maui, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6219/6370839459_098803b332.jpg" width="500" height="195" alt="somewhere on the Road to Hana, Maui, Hawai'i (panorama)"/></a><p class="wp-caption-text">somewhere on the Road to Hana, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6370781821/" title="loop trail on the Road to Hana, Maui, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6232/6370781821_d57635a8ec.jpg" width="500" height="215" alt="loop trail on the Road to Hana, Maui, Hawai'i (panorama)"/></a><p class="wp-caption-text">loop trail on the Road to Hana, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6511495247/" title="Keanae peninsula, Maui, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7032/6511495247_d4dc44d5cb.jpg" width="500" height="207" alt="Keanae peninsula, Maui, Hawai'i (panorama)"/></a><p class="wp-caption-text">Keanae peninsula, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6511500211/" title="Honokalani Black Sand Beach in Waianapanapa State Park, Maui, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7141/6511500211_1191e29e7f.jpg" width="500" height="200" alt="Honokalani Black Sand Beach in Waianapanapa State Park, Maui, Hawai'i (panorama)"/></a><p class="wp-caption-text">Honokalani Black Sand Beach in Waianapanapa State Park, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6511506293/" title="Kipahulu Area, Haleakala National Park, Maui, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7164/6511506293_3b4b529c06.jpg" width="500" height="295" alt="Kipahulu Area, Haleakala National Park, Maui, Hawai'i (panorama)"/></a><p class="wp-caption-text">Kipahulu Area, Haleakala National Park, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6511491673/" title="Kipahulu Area, Haleakala National Park, Maui, Hawai'i (vertorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7034/6511491673_e5f157513f.jpg" width="500" height="500" alt="Kipahulu Area, Haleakala National Park, Maui, Hawai'i (vertorama)"/></a><p class="wp-caption-text">Kipahulu Area, Haleakala National Park, Maui, Hawai'i (vertorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6633851005/" title="La Perouse Bay, Maui, Hawai'i (panorama, HDR) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7172/6633851005_584555a9a0.jpg" width="500" height="312" alt="La Perouse Bay, Maui, Hawai'i (panorama, HDR)"/></a><p class="wp-caption-text">La Perouse Bay, Maui, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6511509653/" title="La Perouse Bay, Maui, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm8.staticflickr.com/7149/6511509653_74e3a7bb8e.jpg" width="500" height="143" alt="La Perouse Bay, Maui, Hawai'i (panorama)"/></a><p class="wp-caption-text">La Perouse Bay, Maui, Hawai'i (panorama)</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1614/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>my favorite focal lengths</title>
		<link>http://www.marcuswinter.de/archives/1615</link>
		<comments>http://www.marcuswinter.de/archives/1615#comments</comments>
		<pubDate>Sat, 14 Jan 2012 16:32:50 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[flickr]]></category>
		<category><![CDATA[sundries]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1615</guid>
		<description><![CDATA[I have been meaning to something like this for quite a while, plotting the distribution of the focal lengths used in the pictures I shoot, to see which portions of the zoom range get the most action. Here is the graph for our recent vacation on Hawai’i, obtained using the Lightroom 4 beta and Jeffrey [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />I have been meaning to something like this for quite a while, plotting the distribution of the focal lengths used in the pictures I shoot, to see which portions of the zoom range get the most action. Here is the graph for our recent vacation on Hawai’i, obtained using the Lightroom 4 beta and <a href="http://regex.info/blog/lightroom-goodies/focal-length-sort">Jeffrey Friedl’s Focal Length Sort</a>:</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/focal-length-statistics-Hawai'i.png" title="focal length statistics" width="427" height="279" /><p class="wp-caption-text">Distribution of focal lengths used during three weeks in Hawai'i. Blue bars include shots that were stitched into panoramas, green bars represent only single-frame images.</p></div>
<p>Only the shots that I kept out of the 3,180 total were used to make the figure.</p>
<p>Interestingly, the short focal lengths see the most use, with the minimum possible length dominating the statistics, even more so when including the shots comprising the 205 panoramas. I guess that’s not unusual, since most of these are pictures of landscape (after all, it’s Hawai’i). However, I was obviously to lazy (or too hurried) to even once switch to the 14mm pancake lens that I lugged around with me.<br />
There were a couple of situations (&lt;1.5% of the pictures) where I likely could have used a longer lens, but had to settle for the 55mm long end of my 18-55mm zoom.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1615/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Signal Statistics for Nyquist WDM / OTDM</title>
		<link>http://www.marcuswinter.de/archives/1612</link>
		<comments>http://www.marcuswinter.de/archives/1612#comments</comments>
		<pubDate>Sun, 08 Jan 2012 14:35:38 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[Nyquist WDM]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1612</guid>
		<description><![CDATA[A while back I posted an article on Signal Statistics for OFDM. Originally, this would have included OTDM also, but it grew too long. So it was split into two parts. This is the second part. Please read the original article first, as it explains much of the terminology and the present article by itself [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />A while back I posted an article on <a href="/archives/ofdm-signal-statistics" title="Signal Statistics for OFDM">Signal Statistics for OFDM</a>. Originally, this would have included OTDM also, but it grew too long. So it was split into two parts. This is the second part. Please read the original article first, as it explains much of the terminology and the present article by itself may be difficult to follow.</p>
<h4>OTDM Recap</h4>
<p>Some basics of OTDM / Nyquist WDM are explained in <a href="/archives/the-art-of-nyquist-wdm" title="the Art of Nyquist WDM">The Art of Nyquist WDM</a> which I recommend reading if you’re new to the concept. Recently, I find the name OTDM much more fitting due to its duality with OFDM. However, what’s commonly termed OTDM in optics (multiplexing really short pulse trains) I assume stands for <em>optical TDM</em>, since it doesn’t make any use of an orthogonality relation (though technically, the tributaries are orthogonal).</p>
<p>Anyway, the basic premise of OTDM is that $K$ pulses are overlapping in time. Only by their special shape (the truncated sinc function) can they be detected without crosstalk. The sinc function has the fortunate property of having zeros at regular intervals. By making it so that these zeros occur at the centers of all neighboring symbol slots, there will only be one symbol not equal to zero at each slot center (this being the symbol that is centered on that particular slot). At all other times within the symbol slot, all symbols can have values other than zero and interfere. Hence, we immediately expect quite different signal statistics depending on the position within the symbol slot we are interested in.</p>
<p>The spectrum of the sinc function is rectangular (or almost rectangular for the truncated sinc) so that many such channels could be put very close to each other without spectral crosstalk.</p>
<p><span id="more-1612"></span></p>
<h4>Importance Sampling</h4>
<p>In contrast to OFDM which was (in a special case) the superposition of randomly chosen letters from the same alphabet (the QAM constellation diagram) <em>with equal weights</em>, the weights of the different superposed symbols in OTDM are defined by the sinc function. At the symbol slot center, for instance, the weight for the symbol centered in that slot is unity while for all other symbols it is zero. In this case the PMF for a quadrature, the signal or its power can be simply determined from the constellation diagram of the modulation format.</p>
<p>At all other positions the weights are different and non-zero. We cannot therefore use combinatorical means to tackle this problem. Due to the low probabilities involved (which are expected to be similar to OFDM), an exhaustive numerical simulation is not feasible and a Monte-Carlo simulation will not yield the relevant low-probability details. We can, however, apply the concept of importance sampling to our Monte Carlo simulations [1]. Here, we bias the random drawing (of points from the constellation diagram for each symbol) to favor the occurrence of signals with high powers, i.e. we prefer to stay in the corners of the constellation diagram and switch to the opposite corner whenever the sign of the particular sinc-weight for a symbol becomes negative. In this way we get samples for which all the constituents are quite large and in phase. We have to retain some randomness, however, since we are interested in the PMF/CDF and not just the maximum possible value (more on that below). The biased probability for the symbols is compensated when later calculating the PMF.</p>
<p>Biasing toward higher sample powers results in a smaller number of samples with low power, which in turn leads to larger variance in that part of the PMF. We would like to have an accurate representation of the whole PMF, though. Hence, we will generally simulate the same modulation format with different bias values and later combine their results using the <em>balance heuristic</em> which is basically just a pretty optimal way of combining such data [2].</p>
<p>You will find the MATLAB code (not optimized for speed or anything) at the end of the article.</p>
<h4>Signal Power</h4>
<p>Since the code is available to play around with, we will look at just a few results to highlight the differences between OFDM and OTDM. In particular, the symbol length will be $16T$, i.e. 16 times the time between consecutive symbols (or the inverse symbol rate), and thus $K=16$. The alphabets used will be 16-QAM ($N=4$) and 64-QAM ($N=8$). As can be seen in Fig. 5 in the <a href="/archives/ofdm-signal-statistics" title="Signal Statistics for OFDM">OFDM article</a>, this results in probabilities in the vicinity of $10^{-28}$ for the largest powers in OFDM signals, something not feasible to be figured out by “regular” Monte Carlo techniques.</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/other/Nyquist WDM power CDF K=16.png" title="OTDM power CDF" width="427" height="279" /><p class="wp-caption-text">Figure 1: Cumulative distribution functions of sample power for OTDM signals with <em>K</em> = 16 overlapping symbols. Also shown are comparable distributions of OFDM signals (<em>K</em> = 16) and the χ-squared distribution corresponding to complex Gaussian signals. Samples are taken at the symbol slot boundaries.</p></div>
<p>The figure shows the worst case regarding high signal powers, with the sampling instants chosen at the symbol slot boundaries. See also the next section for more details. While the probabilities of the maximum values are the same (they depend only on $K$ and $N$ as shown in the <a href="/archives/ofdm-signal-statistics" title="Signal Statistics for OFDM">OFDM post</a>), the maximum observable power is less than half in OTDM. At high probabilities like $10^{-6}$ the difference is smaller. This is a result of the heterogeneous weights of the contributions from the different symbols to each sample, as opposed to equal (magnitudes of) weigths in OFDM.</p>
<p>Sometimes there will be “kinks” in the graphs so obtained by importance sampling. These are a result of outliers whose effect is amplified by the algorithm (in the code, <code>data</code> with very low <code>dataweights</code> contribute significantly more). This is a known problem of importance sampling. As these occur randomly, they might or might not be there. Their position is also random, so that they can be identified by multiple runs of the code.</p>
<h4>Other Sample Times</h4>
<p>In OFDM, the sample power distribution varied only little with sample timing within the symbol slot (cf. Figs. 6 and 7 in the <a href="/archives/1608" title="Signal Statistics for OFDM">OFDM post</a>). As the constellation diagrams of consecutive OTDM symbols do not rotate relative to each other, it is quite straightforward to determine the maximum possible sample power at various instants within the symbol slot by simply adding the weight magnitudes (plus squaring and scaling). They can even be given analytically.$^1$</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/other/Nyquist WDM highest sample power.png" title="OTDM maximum sample power vs. sampling time" width="427" height="279" /><p class="wp-caption-text">Figure 2: Maximum possible sample power versus sampling instant within the symbol slot. Colored markers correspond to curves in Fig. 3.</p></div>
<p>Unlike OFDM, the maximum power does not have multiple local maximums within the symbol slot, but varies by about an order of magnitude between symbol slot center and boundaries. The sample power CDFs vary accordingly:</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/other/Nyquist WDM power CDF K=16 other sample points.png" title="Nyquist WDM power CDFs" width="427" height="279" /><p class="wp-caption-text">Figure 3: Cumulative distribution functions of sample power for OTDM signals with <em>K</em> = 16 overlapping symbols and 16-QAM modulation for various sampling instances within the symbol slot.</p></div>
<p>For $t_S=0.5$ (the symbol slot center), the CDF corresponds to the constellation diagram, as at this instant only one of the overlapping symbols is non-zero.</p>
<h4>Oversampling</h4>
<p>For (always necessary) oversampling, the distributions for the appropriate sampling instances can simply be combined. Interestingly, for simple two-fold oversampling, half the samples will be taken in the symbol slot center and the other half at its boundaries. Thus, the worst case regarding symbol power is included and the high-power samples resulting thereof need to be accounted for by leaving appropriate headroom in the digital-analog converters, amplifiers and whatnot.</p>
<h4>MATLAB Code</h4>
<pre class="MATLAB">
clear variables

LoS = 16; % length of symbol in units of symbol slots
QAM = 64; % number of possible values in each quadrature for 16-QAM - only powers of 2 allowed
NoS = 2^20; % number of Monte Carlo samples

offset = 0.5; % relative sampling position within symbol slot - 0.5 is center

% list of biasing coefficients used; need not be integer
explist = [0,1,2,3]; % works well for 16-QAM, LoS = 16
% explist = [0,2,4,6,8]; % works well for 64-QAM, LoS = 16

bins = linspace(0,16,1001); % set histogram bins for graphing

%%% set-up of some variables

normalization = 1/sqrt(2/3*(QAM-1)); % alphabet normalization
normalization = normalization / 0.987345; % unit energy per symbol for LoS = 16
% normalization = normalization / 0.993669; % unit energy per symbol for LoS = 32
normweight = (1/QAM)^LoS; % probability of any particular symbol w/o biasing

% sinc coefficients of each sample within the symbol
coeffs = sinc((-LoS/2:LoS/2-1) + offset);

% constellation diagram
NoV = sqrt(QAM); % number of possible values in I and Q
values = 0:2:2*(NoV-1); values = values - NoV + 1; % possible values in I and Q for each symbol
values = values * normalization;
symbols = repmat(values, [NoV,1]) + 1i * repmat(values.', [1,NoV]);
symbols = symbols(:); % complex QAM alphabet

bins = [bins, Inf];
PMF = zeros(length(bins), length(explist));
bincounts = PMF;

%%% importance sampling Monte Carlo simulation

for jj = 1:length(explist)

    % biasing is based on distance to opposite corner symbols (depending on coeff sign)
    distplus = abs(symbols - symbols(1));
    wplus = 1 ./ (1 + distplus).^explist(jj); % weights avoid division by zero
    wplus = wplus / sum(wplus); % normalization

    distminus = abs(symbols - symbols(QAM)); % opposite corner
    wminus = 1 ./ (1 + distminus).^explist(jj);
    wminus = wminus / sum(wminus);

    origdata = rand(NoS,LoS); % generate random data (symbol plus neighbors)

    data = zeros(NoS,LoS);
    dataweights = zeros(NoS,LoS);

    for kk = 1:LoS
        if coeffs(kk) >= 0
            for ii = (QAM):-1:1; % draw from biased distribution
                data(origdata(:,kk) < sum(wplus(1:ii)),kk) = symbols(ii);
                dataweights(origdata(:,kk) < sum(wplus(1:ii)),kk) = wplus(ii);
            end
        else % for negative coeffs bias towards opposite corner
            for ii = (QAM):-1:1;
                data(origdata(:,kk) < sum(wminus(1:ii)),kk) = symbols(ii);
                dataweights(origdata(:,kk) < sum(wminus(1:ii)),kk) = wminus(ii);
            end
        end
    end

    data = data .* repmat(coeffs, [NoS, 1]); % each row corresponds to one sample

    powers = abs(sum(data, 2)).^2;
    dataweights = prod(dataweights, 2);

    if explist(jj) ~= 0 % remove IS outliers
        index = find(dataweights >= normweight);
        powers = powers(index);
        dataweights = dataweights(index) * NoS / 4;
            % division by 4 is necessary to compensate for biasing towards only 1 corner
    else
        dataweights = dataweights * NoS;
    end

    % build PMF histograms for each biasing value
    for ii = 1:length(bins)-1
        index = find(powers >= bins(ii) &#038; powers < bins(ii+1));
        PMF(ii,jj) = sum(normweight ./ dataweights(index));
        bincounts(ii,jj) = length(index);
    end

end

% average histograms using balance heuristic
weights = PMF .* bincounts ./ repmat(sum(PMF .* bincounts, 2), [1, length(explist)]);
weights(isnan(weights)) = 0; % bincount of zero causes weights to become NaN

avgPMF = sum(PMF .* weights, 2);

% complementary CDF
for ii=1:length(avgPMF)
    CDF(ii) = sum(avgPMF(ii:end));
end
</pre>
<p>Note the normalization of the symbol amplitude in order to obtain unit mean energy per symbol. This accounts for the distribution of the constellation points for the particular QAM format as well as the truncated sinc pulse shape. Since</p>
<p>$$\intop_{-K/2}^{K/2} \mathrm{sinc}^2 x \, dx &lt; 1 \quad \text{for} \quad K &lt; \infty$$</p>
<p>the energy reduction resulting from truncation is compensated by appropriate scaling.</p>
<hr />
<p><strong>1</strong> The main problem is to find</p>
<p>$$S_\mathrm{max}^2 = \left[\sum_{k=0}^{K-1} \left| \mathrm{sinc} \left(k - K/2  + t_S\right) \right| \right]^2 = \left[\sum_{k=0}^{K-1} \left| \frac{\sin \bigl[\pi \left(k - K/2  + t_S\right)\bigr]}{\pi \left(k - K/2  + t_S\right)} \right| \right]^2$$</p>
<p>which is then multiplied by the highest power occuring in the constellation diagram of the particular modulation format (which also depends on $K$ when properly normalized). For simplicity, we'll assume $K$ to be even and we will only try and find $S_\mathrm{max}$, and leave the squaring to the interested reader. The sine in the numerator will then have a constant value, determined by $t_S$ that simply alternates its sign with $k$ and thus can be written</p>
<p>$$S_\mathrm{max} = \frac{\sin \pi t_S}{\pi}\sum_{k=0}^{K-1} \left| \frac{c_S \left(-1\right)^k}{k - K/2  + t_S} \right|$$</p>
<p>with</p>
<p>$$c_S = \begin{cases} 1 &amp; K/2 \text{ even}\\ -1 &amp; K/2 \text{ odd}\end{cases}$$</p>
<p>We split the sum to get rid of the negative denominator and with it the absolute value function and the sign coefficients:</p>
<p>$$S_\mathrm{max} = \frac{\sin \pi t_S}{\pi}\sum_{k=0}^{K/2-1} \frac{1}{k + t_S} - \frac{1}{k - K/2 + t_S}$$</p>
<p>These are then just two general harmonic series. Their solution can be given by generalized harmonic numbers or in terms of the Digamma function $\psi(\cdot)$ [3]</p>
<p>$$S_\mathrm{max} = \frac{\sin \pi t_S}{\pi} \left[ \psi\left(t_S - \frac{K}{2}\right) + \psi\left(t_S + \frac{K}{2}\right) - 2 \psi\left(t_S \right) \right]$$</p>
<p>[1] <a href="http://en.wikipedia.org/wiki/Importance_sampling">Importance Sampling</a> [Wikipedia]<br />
[2] E. Veach, <a href="http://graphics.stanford.edu/papers/veach_thesis/thesis.pdf"><em>Robust Monte Carlo methods for light transport simulation</em></a>, dissertation, Stanford University, 1998.<br />
[3] T. M. Rassias and H. M. Srivastava, "Some classes of infinite series associated with the Riemann zeta and polygamma functions and generalized harmonic numbers," <em>Applied Mathematics and Computation</em>, vol. 131, pp. 593–605, 2002. </pre>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1612/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Big Island, Hawai’i</title>
		<link>http://www.marcuswinter.de/archives/1610</link>
		<comments>http://www.marcuswinter.de/archives/1610#comments</comments>
		<pubDate>Mon, 05 Dec 2011 13:19:46 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[flickr]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1610</guid>
		<description><![CDATA[I am still catching up to getting some order into the pictures I took during our last vacation on Hawai’i. And that was back in September! Anyway, here are some of the better panoramas from our first stop, Big Island. Click through for the large version at flickr, with a short description.]]></description>
			<content:encoded><![CDATA[<p id="top" />I am still catching up to getting some order into the pictures I took during our last vacation on Hawai’i. And that was back in September! Anyway, here are some of the better panoramas from our first stop, Big Island. Click through for the large version at flickr, with a short description.</p>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6223743704/" title="scenic point on Hwy 19, Big Island, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6165/6223743704_804fab93a8.jpg" width="500" height="208" alt="scenic point on Hwy 19, Big Island, Hawai'i (panorama)"/></a><p class="wp-caption-text">scenic point on Hwy 19, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6226176117/" title="Pololu Valley lookout, Big Island, Hawai'i (panorama) by Yaisog Bonegnasher, on Flickr"><img src="http://farm7.staticflickr.com/6228/6226176117_e074d5b818.jpg" width="500" height="190" alt="Pololu Valley lookout, Big Island, Hawai'i (panorama)"/></a><p class="wp-caption-text">Pololu Valley lookout, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6459280435/"><img alt="" src="http://farm8.staticflickr.com/7164/6459280435_853b43975b.jpg" title="halfway down Pololu Valley, Big Island, Hawai&#039;i (panorama)" width="500" height="243" /></a><p class="wp-caption-text">halfway down Pololu Valley, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6226706550/"><img alt="" src="http://farm7.staticflickr.com/6047/6226706550_88cb21c059.jpg" title="Pololu Valley, Big Island, Hawai&#039;i (panorama)" width="500" height="322" /></a><p class="wp-caption-text">Pololu Valley, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6226182275/"><img alt="" src="http://farm7.staticflickr.com/6239/6226182275_4624212c93.jpg" title="Pololu Valley, Big Island, Hawai&#039;i (vertorama)" width="500" height="500" /></a><p class="wp-caption-text">Pololu Valley, Big Island, Hawai'i (vertorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6344388996/"><img alt="" src="http://farm7.staticflickr.com/6230/6344388996_c22d8e2fdb.jpg" title="Rainbow Falls, Big Island, Hawai&#039;i (panorama)" width="500" height="226" /></a><p class="wp-caption-text">Rainbow Falls, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6344460332/"><img alt="" src="http://farm7.staticflickr.com/6119/6344460332_c8221dc280.jpg" title="cove in Onomea Bay, Big Island, Hawai&#039;i (panorama)" width="500" height="186" /></a><p class="wp-caption-text">cove in Onomea Bay, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6343803989/"><img alt="" src="http://farm7.staticflickr.com/6219/6343803989_153310dbac.jpg" title="off Hawai&#039;i Belt Road, Kau, Big Island, Hawai&#039;i (panorama)" width="500" height="125" /></a><p class="wp-caption-text">off Hawai'i Belt Road, Kau, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6344603072/"><img alt="" src="http://farm7.staticflickr.com/6109/6344603072_b8e46b1714.jpg" title="Halema&#039;uma&#039;u Crater in Kilauea Caldera, Volcanoes National Park, Big Island, Hawai&#039;i (panorama)" width="500" height="172" /></a><p class="wp-caption-text">Halema'uma'u Crater in Kilauea Caldera, Volcanoes National Park, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6343938139/"><img alt="" src="http://farm7.staticflickr.com/6231/6343938139_e011c05f47.jpg" title="cinder cone off Saddle Road, Big Island, Hawai&#039;i (panorama)" width="500" height="179" /></a><p class="wp-caption-text">cinder cone off Saddle Road, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6343972947/"><img alt="" src="http://farm7.staticflickr.com/6225/6343972947_0d6575073b.jpg" title="clouds rolling in, Mauna Kea Access Road, Big Island, Hawai&#039;i (panorama)" width="500" height="196" /></a><p class="wp-caption-text">clouds rolling in, Mauna Kea Access Road, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6344042259/"><img alt="" src="http://farm7.staticflickr.com/6041/6344042259_ef2e778271.jpg" title="central Big Island seen from Mauna Kea Visitor Center, Hawai&#039;i (panorama)" width="500" height="179" /></a><p class="wp-caption-text">central Big Island seen from Mauna Kea Visitor Center, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6345213210/"><img alt="" src="http://farm7.staticflickr.com/6103/6345213210_8dc48f9c62.jpg" title="seeing double at Mauna Kea Visitor Center, Big Island, Hawai&#039;i (panorama)" width="500" height="168" /></a><p class="wp-caption-text">seeing double at Mauna Kea Visitor Center, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6347544467/"><img alt="" src="http://farm7.staticflickr.com/6238/6347544467_a4351abf70.jpg" title="W.M. Keck Observatory, Mauna Kea summit, Big Island, Hawai&#039;i" width="500" height="172" /></a><p class="wp-caption-text">W.M. Keck Observatory, Mauna Kea summit, Big Island, Hawai'i</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6348379708/"><img alt="" src="http://farm7.staticflickr.com/6109/6348379708_dd83e10613.jpg" title="cinder cones and observatories, Mauna Kea summit, Big Island, Hawai&#039;i" width="500" height="138" /></a><p class="wp-caption-text">cinder cones and observatories, Mauna Kea summit, Big Island, Hawai'i</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6348388420/"><img alt="" src="http://farm7.staticflickr.com/6031/6348388420_8e4168fe14.jpg" title="Lake Waiau, Mauna Kea summit, Big Island, Hawai&#039;i (panorama)" width="500" height="139" /></a><p class="wp-caption-text">Lake Waiau, Mauna Kea summit, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6350446339/"><img alt="" src="http://farm7.staticflickr.com/6212/6350446339_2daace6349.jpg" title="Kealakekua Bay, Big Island, Hawai&#039;i (panorama)" width="500" height="157" /></a><p class="wp-caption-text">Kealakekua Bay, Big Island, Hawai'i (panorama)</p></div>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.flickr.com/photos/ghazzog/6351228142/"><img alt="" src="http://farm7.staticflickr.com/6057/6351228142_f014e1be6c.jpg" title="Kealakekua Bay, Big Island, Hawai&#039;i (panorama)" width="500" height="243" /></a><p class="wp-caption-text">Kealakekua Bay, Big Island, Hawai'i (panorama)</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1610/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Signal Statistics for OFDM</title>
		<link>http://www.marcuswinter.de/archives/1608</link>
		<comments>http://www.marcuswinter.de/archives/1608#comments</comments>
		<pubDate>Tue, 15 Nov 2011 21:52:08 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[OFDM]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1608</guid>
		<description><![CDATA[Here is something that recently piqued my interest (and kept me busy for the better part of last week). It could be (marginally) interesting for people which work on OFDM or Nyquist WDM and – as far as I know – no one has looked at this in more detail...]]></description>
			<content:encoded><![CDATA[<p id="top" />Here is something that recently piqued my interest (and kept me busy for the better part of last week). It could be (marginally) interesting for people which work on OFDM or Nyquist WDM and – as far as I know – no one has looked at this in more detail. In both, OFDM and Nyquist WDM / OTDM$^1$, each sample of the compound signal is a superposition of multiple subchannel symbols (OFDM) or neighboring symbols (OTDM). When there are more than about 8 to 10 superposed symbols, the involved distributions begin to converge toward the Gaussian. However, they are not truly Gaussian. This article is about the differences between the true OFDM signal statistics and true Gaussian statistics.</p>
<p>First of all, for a finite number of subchannels, the probability distribution will be a discrete one, described by a probability mass function (PMF). Second, unlike the Gaussian, the supports of the involved distributions are bounded and there exists a maximum value that occurs with finite probability. So, what could be more interesting than to figure out the exact PMFs involved? Ultimately, we are interested in the statistics of the sample powers. Often, these are given as a peak-to-average-power ratio (PAPR) [1]. We will discuss why this has almost no meaning in just a little while.</p>
<p>We’ll start with OFDM in this article since it allows us to use some results from combinatorics to save some work. OTDM, on the other hand, will require a brute force – or comprehensive – approach, and we’ll save that for later.</p>
<p><strong>Caveat emptor</strong>: As with almost all articles on this blog, the content presented is not just reproduced from some book, but derived with the help of the cited sources only. I cannot guarantee that it is correct or that it is not treated elsewhere in a more complete way. If you find it discussed somewhere not cited here, or if you find an error, please let me know in the comments.</p>
<h4>OFDM Recap</h4>
<p>In the article on <a href="/archives/659" title="Optical OFDM – OFDM Basics">OFDM Basics</a> an OFDM symbol $C$ was described as</p>
<p>$$C(t) = \sum_{k=0}^{K-1} C_k(t) = \sum_{k=0}^{K-1} c_k \cdot \exp\bigl(i\omega_k t\bigr)\tag{1}$$</p>
<p>where the $c_k$ are the coefficients containing the data. Often, these are taken from a complex M-QAM alphabet which resembles a square in phase space when $M = 2^{2m}$ with integer $m$, e.g. $M=4$, $M=16$ or $M=64$. If we (initially) restrict our analysis to the case $t=0$, i.e. a particular sampling point in the duration of the symbol, then the exponentials vanish for all $k$ and all subchannel symbols $C_k$ would use the same alphabet – without this restriction, the alphabet for each symbol would be rotated by a $t$- and $k$-dependent amount.</p>
<p>We start by looking at the signal statistics for a single quadrature (I or Q), since both are equal with square alphabets / constellation diagrams, and then combine these statistics into a PMF for the symbol power.</p>
<p><span id="more-1608"></span></p>
<h4>Single Quadrature</h4>
<p>The signal in a single quadrature of an M-QAM symbol can take $N = \sqrt{M}$ different values. The exact possible values depend on our normalization. If we normalize to average power $\bigl\langle P \bigr\rangle = 1$ then we have the following alphabets</p>
<p>$$\begin{gather}<br />
A_\mathrm{4-QAM} = \frac{1}{\sqrt{K} \sqrt{2}} \left\lbrace -1, 1 \right\rbrace \\<br />
A_\mathrm{16-QAM} = \frac{1}{\sqrt{K} \sqrt{10}} \left\lbrace -3, -1, 1, 3 \right\rbrace \tag{2}\\<br />
A_\mathrm{64-QAM} = \frac{1}{\sqrt{K} \sqrt{42}} \left\lbrace -7, -5, -3, -1, 1, 3, 5, 7 \right\rbrace<br />
\end{gather}$$</p>
<p>Since all coefficients $C_k(t=0)$ are chosen from the same alphabet, the order in which they appear in the sum $C(t=0)$ does not matter, so we are reduced to the problem of figuring out the possible combinations of symbols in $A$ in a sequence of length $K$ and the probability of each possibility occurring. The problem is equivalent to the combinatorical problem of choosing $K$ elements from the alphabet $A$ with repetitions, but without order (since the order of the occurrence of the various symbols is not relevant for their sum), and the number of combinations is given by the binomial coefficient [2]</p>
<p>$$\begin{pmatrix} N + K – 1 \\ K \end{pmatrix} \tag{3}$$</p>
<p>The probability of each such combination is then determined by the multinomial distribution [3].</p>
<p>$$p = \begin{cases}\frac{K!}{\prod x_n!}\left(\frac{1}{N}\right)^K &amp; \text{when} \; \sum_{n=1}^N x_n = K \\ 0\vphantom{\frac{1}{1}} &amp; \text{otherwise}\end{cases} \tag{4}$$</p>
<p>where $x_n$ is the number of occurrences of symbol $n$ from alphabet $A$. In (4) we assumed that all symbols appear with equal probability $N^{-1}$. Figure 1 compares the number of combinations for various $N$ as described by (3) and with a comprehensive approach, which has $N^K$ combinations. The comprehensive approach produces combination counts which are orders of magnitude larger for even small values of the sequence length $K$, and can only be analyzed using Monte Carlo techniques except for small $N$ and $K$.</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/OFDM/symbol combinations.png" width="427" height="279" /><p class="wp-caption-text">Figure 1: Number of possible combinations of choosing <em>K</em> times from a set of size <em>N</em> (with repetitions); regarding order (solid lines, comprehensive) and disregarding order (dashed lines).</p></div>
<p>The MATLAB code to compute the PMF of a single quadrature signal is quite straightforward$^2$:</p>
<pre class="MATLAB">
clear variables
NoS = 8; % number of subchannels
NoV = 4; % number of possible values in each quadrature for 16-QAM - only powers of 2 allowed
normalization = 1 / sqrt(NoS) / sqrt(2/3*(NoV^2 - 1)); % alphabet normalization according to (2)
    % see http://www.dsplog.com/2007/09/23/scaling-factor-in-qam/
    % for the origin of the factor (2/3*(NoV^2 - 1)
probability = 1 / NoV; % (uniform) probability of each value to occur

values = 0:2:2*(NoV-1); values = values - NoV + 1; % generate integer part of the alphabet

support = min(values)*NoS:max(values)*NoS; % range of integers that the signal can take

[count, tuples] = nsumk(NoV, NoS);
    % listing of (ordered) NoV-tuples of non-negative integers adding up to NoS
    % see http://www.mathworks.com/matlabcentral/fileexchange/28340-nsumk for details on nsumk()

p = factorial(NoS) ./ prod(factorial(tuples), 2) * probability^NoS; % multinomial PDF of each tuple row
sums = sum(tuples .* repmat(values, [size(tuples, 1), 1]), 2); % sum of all symbols

% add PMFs of equal sum values but different addends (if any)
PMF = zeros(size(support));
for ii = 1:size(p)
    index = find(support == sums(ii));
    PMF(index) = PMF(index) + p(ii);
end

support = normalization * support;
</pre>
<p>and a typical PMF plot will look like this:</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/OFDM/OFDM signal PMF.png" width="427" height="279" /><p class="wp-caption-text">Figure 2: Probability mass functions for two exemplary combinations of signal levels (<em>N</em>) and number of subchannels (<em>K</em>). More signal levels will lead to more combination possibilities and thus a finer-grained PMF.</p></div>
<p>The PMF is unfortunately not a very clear tool due to the colored dots all over the place – often it is easier to compare distributions with discrete values by their cumulative density function which is – like for continuous probability densities – the integral of the $\mathrm{PDF}_C(C)$.</p>
<p>$$\mathrm{CDF}_C(C) = \intop_{-\infty}^C \mathrm{PDF}_C(C’) \, dC’ \tag{5}$$</p>
<p>which in MATLAB can be done via</p>
<pre class="MATLAB">
CDF = (sum(tril(repmat(PMF, [size(PMF, 2), 1])),2);
</pre>
<p>The CDFs are step functions:</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/OFDM/OFDM signal CDF K=8.png" width="427" height="279" /><br /><img alt="" src="/media/OFDM/OFDM signal CDF K=16.png" width="427" height="279" /><br /> <img alt="" src="/media/OFDM/OFDM signal CDF K=32.png" width="427" height="279" /><p class="wp-caption-text">Figure 3: Cumulative distribution functions of single-quadrature signal levels for various QAM formats and <em>K</em> = 8 (top), <em>K</em> = 16 (middle) and <em>K</em> = 32 (bottom) subchannels, together with the CDF for a Gaussian distribution with equal power.</p></div>
<p>We can see that each QAM format and subchannel count will result in a slightly different distribution of values. As $N$ and $K$ increase, the CDFs (and thus PDFs) approach the Gaussian distribution. However, each $(N,K)$ pair has a distinctive minimum value $C_\mathrm{min} = K \cdot \min(A)$ and associated probability $\mathrm{PDF}_C(C_\mathrm{min})$ for which we will give a closed expression later. The CDF can be used to determine clipping probabilities and the CDF of the clipped portion of the signal (where we also have to pay attention to the positive side which does, however, have the same statistics due to symmetry).</p>
<h4>Signal Power</h4>
<p>For each in-phase amplitude $C_i$ with associated probability $\mathrm{PMF}_C(C_i)$ and quadrature amplitude $C_q$ with associated probability $\mathrm{PMF}_C(C_q)$ we can assign a sample power</p>
<p>$$P = C_i^2 + C_q^2\tag{6a}$$</p>
<p>with joint probability</p>
<p>$$\mathrm{PMF}_P(P) = \mathrm{PMF}_C(C_i) \cdot \mathrm{PMF}_C(C_q) \tag{6b}$$</p>
<p>since the data in both quadratures is independent. We simply calculate all power values and associated probabilities, clean the list by combining the probabilities of equal power values and sort the values$^2$:</p>
<pre class="MATLAB">
ll = length(support);
power = repmat(support,[ll, 1]).^2 + repmat(support.',[1, ll]).^2; % all possible power values
p = repmat(PMF_C,[ll, 1]) .* repmat(PMF_C.',[1, ll]); % joint probability

support_P = unique(power(:)); % find unique power values and sort them
PMF_P = zeros(size(support_P));

for ii = 1:length(p(:))
    index = find(support_P == power(ii));
    PMF_P(index) = PMF_P(index) + p(ii);
end
</pre>
<p>The result looks like this:</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/OFDM/OFDM power PMF.png" width="427" height="279" /><p class="wp-caption-text">Figure 4: Probability mass function of the sample power for <em>N</em> = 8 (64-QAM), <em>K</em> = 8 subchannels and unit mean power.</p></div>
<p>Again, it’s more useful to plot the CDF. In particular, the complimentary CDF can be used to determine the probability of the sample power being larger than some value of interest, which can be related to the PAPR.</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/OFDM/OFDM power CDF K=8.png" width="427" height="279" /><br /><img alt="" src="/media/OFDM/OFDM power CDF K=16.png" width="427" height="279" /><br /> <img alt="" src="/media/OFDM/OFDM power CDF K=32.png" width="427" height="279" /><p class="wp-caption-text">Figure 5: Cumulative distribution functions of sample power for various QAM formats and <em>K</em> = 8 (top), <em>K</em> = 16 (middle) and <em>K</em> = 32 (bottom) subchannels, together with the CDF for a χ-squared distribution with two degrees of freedom and equal power.</p></div>
<p>While there are significant deviations from the $\chi^2$ distribution$^3$ visible in Figure 5, these occur mostly at low probabilities. </p>
<h4>Other Sample Times</h4>
<p>Generally, a single OFDM symbol comprising $K$ subchannels is made up of at least $K$ samples, more if there is oversampling and/or cyclic prefix. Since sampling times other than multiples of $\Delta\omega \cdot t = \pi/2$ result in different coefficient alphabets$^1$ for different subchannels, we cannot apply our previous simplifications and have to resort to comprehensive methods. We’ll discuss these in more detail in a separate post on Nyquist WDM signal statistics.</p>
<p>As an example, we’ll look at the highest sample power at various sampling instances of OFDM symbols with eight 16-QAM subchannels obtained by exhaustively searching all combinations (which takes about half an hour PER POINT to compute on my machine and which could probably be done much faster with a little more thinking). We would expect the maximum to occur at $\Delta\omega \cdot t = m \cdot \pi/2$ (quarter rotations of the constellation alphabet between neighboring subchannels) because only then do the constellation points with the highest powers in each subchannel potentially add in phase for all subchannels. Figure 6 confirms our assumption:</p>
<div class="wp-caption aligncenter" style="width: 437px"><img alt="" src="/media/OFDM/OFDM highest sample power.png" width="427" height="279" /><p class="wp-caption-text">Figure 6: Maximum possible single-sample power depending on the position of the sample within the OFDM symbol for <em>N</em> = 4 and <em>K</em> = 8. To reduce calculation times, only the non-repeating part (solid) was actually calculated and then repeated (dashed). The symbols correspond to the colors in Figure 7.</p></div>
<p>The CDFs will of course also differ with sample timing, but not by much as Figure 7 shows.</p>
<div class="wp-caption aligncenter" style="width: 510px"><img alt="" src="/media/OFDM/OFDM power CDF K=8 other sample points.png" width="427" height="279" /><p class="wp-caption-text">Figure 7: Cumulative distribution functions of sample power for 16-QAM format and <em>K</em> = 8 for different sample times within the OFDM symbol, together with the CDF for a χ-squared distribution with two degrees of freedom and equal power.</p></div>
<h4>Limit Probabilities and PAPR</h4>
<p>Usually, it’s computationally not feasible to calculate the CDFs when there are either a lot of QAM levels $M$ or subchannels $K$. We can, however, quite easily determine the probability of the highest possible sample power to occur. We know that it appears for $t=0$ and we can thus use the derivations made above. We also know that it is just the square of $K$ times the largest-amplitude signal in a single subchannel, or with (6),</p>
<p>$$\max(P) = \max\left(C_i^2 + C_q^2\right) = 2 K^2 \cdot \bigl[\max(A)\bigr]^2 \tag{7}$$</p>
<p>with the alphabet $A$ as in (2). Since or normalization is such that $\left\langle P \right\rangle=1$, $\mathrm{max}(P)$ is also the “true” PAPR of an OFDM signal.</p>
<p>Let us check how probable an occurrence of $\max(P)$ actually is. We start with the probability for all coefficients $C_k$ being equal in a single quadrature, which corresponds to all $x_n$ in (4) being zero except for the one denoting that particular coefficient which is equal to $K$ (it does not matter which one that is when all coefficients are equally likely).</p>
<p>$$p_\text{equal quadrature} = \left(\frac{1}{N}\right)^K\tag{8}$$</p>
<p>The probability that the other quadrature also has the same coefficient in each subchannel (but possibly a different one than the first quadrature) is</p>
<p>$$p_\text{equal symbol} = p^2_\text{equal quadrature} = \left(\frac{1}{N}\right)^{2K} = \left(\frac{1}{M}\right)^{K}\tag{9}$$</p>
<p>where $M$ is the number QAM constellation points, since we still assume the data in both quadratures to be independent. This is the probability that any single constellation point appears simultaneously in all subchannels. There are four constellation points which cause the symbol to have the maximum possible power – the corner points. Hence the probability for the maximum power to occur is</p>
<p>$$p_{\max(P)} = 4 \left(\frac{1}{M}\right)^{K} \tag{10}$$</p>
<p>This can be very, very small, as we can also see in Figure 5, easily down to the $10^{-50}$s. Furthermore, (10) is valid only for the sample times within the OFDM symbol for which $\Delta\omega \cdot t = m \cdot \pi/2$, as discussed above. For all other sample times, the probability for $\max(P)$ to occur is zero.</p>
<p>Such probabilities are utterly irrelevant for communication even at Terabit/s. If just observing an OFDM signal for a while and giving the PAPR as the ratio involving the highest observed sample power, the result would be somewhat random and should only be given with proper confidence bounds. It would make more sense to define a power value (or rather, ratio) which is only exceeded with a probability lower than some value like $10^{-3}$ or $10^{-6}$ maybe. At these probabilities, the differences between the different sample timing (cf. Figure 7) seem to be negligible. As far as I know, such a definition does not exist (yet).</p>
<p>Anyway, if PAPR is a serious issue in a system, one should maybe look at <a href="/archives/1037" title="the Art of Nyquist WDM">Nyquist WDM</a> which has nicer overall sample statistics (non-Gaussian).</p>
<hr />
<p><strong>1</strong> Here, $\Delta\omega$ is the subchannel frequency separation. When $\Delta\omega \cdot t = \pi/2$, then all subchannel alphabets are rotated by multiples of a quarter circle (neighboring subchannels are rotated a quarter circle against each other, the next subchannels a half circle, and so forth) which results in identical alphabets for square QAM. The length of the “core” OFDM symbol is given by $\Delta\omega \cdot t = 2\pi$.</p>
<p><strong>2</strong> This is the fastest code I could hack together in a short time. Take it as a starting point.</p>
<p><strong>3</strong> The (central) $\chi^2$ distribution with 2 degrees of freedom describes the distribution of power in a signal with two-dimensional Gaussian amplitude distribution [4].</p>
<p>[1] <a href="http://en.wikipedia.org/wiki/Crest_factor">PAPR</a> [Wikipedia]<br />
[2] <a href="http://en.wikipedia.org/wiki/Combinations#Number_of_combinations_with_repetition">Combinations</a> [Wikipedia]<br />
[3] <a href="http://en.wikipedia.org/wiki/Multinomial_distribution">Multinomial Distribution</a> [Wikipedia]<br />
[4] <a href="http://en.wikipedia.org/wiki/Chi-squared_distribution">$\chi^2$ distribution</a> [Wikipedia]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1608/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Series Expansions</title>
		<link>http://www.marcuswinter.de/archives/1607</link>
		<comments>http://www.marcuswinter.de/archives/1607#comments</comments>
		<pubDate>Sun, 06 Nov 2011 17:13:19 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[figure porn]]></category>
		<category><![CDATA[mathematics]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1607</guid>
		<description><![CDATA[Something I made back in July. Since then it shows up at the bottom of these here pages in the menu ribbon, but I never wrote a proper post about it. I guess it deserves a little more publicity since I do use it quite regularly. So here is my original description for the cheat [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />Something I made back in July. Since then it shows up at the bottom of these here pages in the menu ribbon, but I never wrote a proper post about it. I guess it deserves a little more publicity since I do use it quite regularly. So here is my original description for the cheat sheet of series expansions of various functions (the link to which can always be found at the bottom):</p>
<h4>Series Expansions Reference</h4>
<p>This is something that I use so often that I should have done it much sooner. Series expansions are a very useful tool that they don’t talk about nearly enough in college classes. Most of the time, for e.g. small signals, the first non-constant term is sufficient for an approximation – and instead of using inverse trigonometric functions or worse to solve your equations, you have a linear or maybe quadratic set of equations that is so much easier to handle. I can never remember the correct coefficients, though, and frequently look them up in Wikipedia. With this nice sheet tacked to the old office wall, these times will be gone.</p>
<p>One needs to be careful, however, not to let the function argument deviate too much for a series approximation to become invalid. That’s why I added graphs of the function itself (dashed black), the linear term (red), the quadratic term (blue) and the cubic term (green) in the vicinity of $x=0$. This way it should be much easier to estimate the validity of the various approximations.</p>
<p><strong>Download the <a href="/media/series expansions cheat sheet.pdf">Series Expansions Cheat Sheet</a>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1607/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ampersand of the Week 42/2011</title>
		<link>http://www.marcuswinter.de/archives/1605</link>
		<comments>http://www.marcuswinter.de/archives/1605#comments</comments>
		<pubDate>Fri, 21 Oct 2011 16:02:09 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1605</guid>
		<description><![CDATA[Pretty spacy ampersand this week, from Cambalache, an equally spacy font.]]></description>
			<content:encoded><![CDATA[<p id="top" />Pretty spacy ampersand this week, from <a href="http://new.myfonts.com/fonts/vargusjohn/cambalache/" title="Cambalache" target="_blank">Cambalache</a>, an equally spacy font.</p>
<p><img alt="" src="/media/ampersand-cambalache.png" class="aligncenter" width="157" height="183" style="border: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1605/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ampersand of the Week 35/2011</title>
		<link>http://www.marcuswinter.de/archives/1603</link>
		<comments>http://www.marcuswinter.de/archives/1603#comments</comments>
		<pubDate>Wed, 31 Aug 2011 18:22:11 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1603</guid>
		<description><![CDATA[This week’s ampersand hails from the just-a-little-bit-crazy corner of typography, but that just makes it awesome. Here it is, Batory Middle:]]></description>
			<content:encoded><![CDATA[<p id="top" />This week’s ampersand hails from the just-a-little-bit-crazy corner of typography, but that just makes it awesome. Here it is, <a href="http://new.myfonts.com/fonts/t4typography/batory/">Batory Middle</a>:</p>
<p><img alt="" src="/media/ampersand-batory.png" class="aligncenter" width="167" height="177" style="border:0;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1603/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ampersand of the Day</title>
		<link>http://www.marcuswinter.de/archives/1600</link>
		<comments>http://www.marcuswinter.de/archives/1600#comments</comments>
		<pubDate>Tue, 16 Aug 2011 19:52:47 +0000</pubDate>
		<dc:creator>Marcus</dc:creator>
				<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.marcuswinter.de/?p=1600</guid>
		<description><![CDATA[Today's (or this week's) ampersand is from <a href="http://new.myfonts.com/fonts/jan-fromm/rooney-pro/regular/">Rooney Pro</a> by Jan Fromm, a very nice-looking serif family that will set you back a mere $546 if you want them all. Unfortunately, it does not contain Greek letters, so it cannot really be used for scientific work requiring mathematics...]]></description>
			<content:encoded><![CDATA[<p id="top" />Maybe a better title would be <em>Ampersand of the Week</em>, but then again who keeps track?</p>
<p>Today’s (or this week’s) ampersand is from <a href="http://new.myfonts.com/fonts/jan-fromm/rooney-pro/regular/">Rooney Pro</a> by Jan Fromm, a very nice-looking serif family that will set you back a mere $546 if you want them all. Unfortunately, it does not contain Greek letters, so it cannot really be used for scientific work requiring mathematics. I really like the small caps and indices, though.</p>
<p><img alt="" src="/media/ampersand-rooney.png" class="aligncenter" width="165" height="179" style="border: 0;" /></p>
<p>It’s a nice variation on the very common &amp; shape that consists of not one but two strokes. So purrty.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcuswinter.de/archives/1600/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

