<?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"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Gaussian distribution</title>
		<atom:link href="http://cycling74.com/forums/topic/gaussian-distribution/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/gaussian-distribution/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 06:07:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/gaussian-distribution/#post-49780</guid>
					<title><![CDATA[Gaussian distribution]]></title>
					<link>http://cycling74.com/forums/topic/gaussian-distribution/#post-49780</link>
					<pubDate>Wed, 14 Apr 2010 21:31:42 +0000</pubDate>
					<dc:creator>tunglutti</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Is there anyone who has a version of Tristan Jehan&#8217;s gauss[x] object for OSX? Can only find a PPC version. Or does anyone know of any other objects than can calculate a gaussian distribution?</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/gaussian-distribution/#post-178752</guid>
					<title><![CDATA[Re: Gaussian distribution]]></title>
					<link>http://cycling74.com/forums/topic/gaussian-distribution/#post-178752</link>
					<pubDate>Wed, 14 Apr 2010 22:37:44 +0000</pubDate>
					<dc:creator>Ch</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>[mxj gaussian]</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/gaussian-distribution/#post-178753</guid>
					<title><![CDATA[Re: Gaussian distribution]]></title>
					<link>http://cycling74.com/forums/topic/gaussian-distribution/#post-178753</link>
					<pubDate>Wed, 14 Apr 2010 22:40:53 +0000</pubDate>
					<dc:creator>Chris Muir</dc:creator>

					<description>
						<![CDATA[
						<p>[lp.norm] from Litter pro.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/gaussian-distribution/#post-178754</guid>
					<title><![CDATA[Re: Gaussian distribution]]></title>
					<link>http://cycling74.com/forums/topic/gaussian-distribution/#post-178754</link>
					<pubDate>Wed, 14 Apr 2010 23:02:51 +0000</pubDate>
					<dc:creator>Szrp</dc:creator>

					<description>
						<![CDATA[
						<p>Apart from using existing objects it&#8217;s fairly easy to create random numbers  with normal distribution, simply by adding together uniformly distributed random numbers. For a true gaussian distribution you&#8217;d have to add together infinitely many numbers, but you can already get good results with a few iterations (usually 12 are used, which gives you some nice round numbers to work with).</p>
<p>So simply generate 12 uniformly distributed random numbers between 0 and 1, add them together, subtract 6 (= half of 12) and you&#8217;ll have normally distributed random numbers (but with a limited range of -6 to 6: This limited range won&#8217;t matter in practice however, since more than 99% of all normally distributed numbers will be within +-3 times the standard deviation anyways, which will be 1 here). If you want you can multiply this result by your desired standard deviation (which will also increase the range limit, so no worries there), then add your desired mean to it.</p>
<p>In Max, the following will produce a random, approximatively normally distributed number with standard deviation 1 and mean 0:</p>
<div><span id="toggle178754-0" class="patchtoggle" onmousedown="toggleMaxPatch('post178754-0', 'er178754-0');">&#8211; Pasted Max <span id="maxversion178754-0"></span> Patch, click to <span id="er178754-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A562.3ocwVtsabBCDF9Z3o.wkUaV4CbZ6c84nJpx.NabEXVgMpaSTd2Kd.1R1%0AFBrr.8FF4wFO%2B9yyX6WssbiKNyUtNe046NVVuZaYAtLNrZaa4lyNmjwTvvbk%0A7eUD%2BS2cMco4m0f6GbB124rnRmw05eeh2LwtOkUvpG1is8%2BTgTKY4PuteqTv%0Ax59SYUtPV%2BuPnHsNOwzIOKjG%2BQIOQ2Lid9g6Q6bHTvPI68qaf1idWHThWfPf%0AI0CpwsHEhY8B3AZPuf1nXHpXiy2rsMe1MQljyUJ1Q9%2B.EEW6fFjJKJPvdFRf%0AiB.fD1z31.h%2BxAjARRhGjEwL4Q2cs1akK3w4h%2BAiI.OmDE5GyExxwEEOqVw0%0AweT9rF4LjHiogP2HaHAKGahqz5B4mSfKR6TIWwkZlVTH6ujnTXs.qHT6mK%2Bz%0AjSZBg5mfKD4JtzC.3CqdQCKIoJ2AuzmtRG%2BzUT3rSLvdqNWpdQLkJlNqPtr2%0A.0jifQ9FiWvbXz.GrPWNF8ES9OBugWL2hkvFrLmTmnUOyojISKpKoPngubdk%0ARW7.SDdNoKiyEX1byDxqeRGnHi%2B2CKUQUYR2Jtqr04uhJkqzBIbHauAYd4Tu%0AA8rHMkC82I5bQ5ohZ.1JBmG%2BvstopIy6RFUSWI7Q0jGg17Tf1x2fKstW0RmB%0AA82VBZzDdgI3cpIRvT3DcS0DdJ6c3sURGlhj9OfIxHZhbiGR3igBRLAtIss7%0ADZcmpMZpmdf2N.NAIEcGao0Mdy9Oq8bmaB%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post178754-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode178754-0">----------begin_max5_patcher----------
562.3ocwVtsabBCDF9Z3o.wkUaV4CbZ6c84nJpx.NabEXVgMpaSTd2Kd.1R1
FBrr.8FF4wFO+9yyX6WssbiKNyUtNe046NVVuZaYAtLNrZaa4lyNmjwTvvbk
7eUD+S2cMco4m0f6GbB124rnRmw05eeh2LwtOkUvpG1is8+TgTKY4PuteqTv
x59SYUtPV+uPnHsNOwzIOKjG+QIOQ2Lid9g6Q6bHTvPI68qaf1idWHThWfPf
I0CpwsHEhY8B3AZPuf1nXHpXiy2rsMe1MQljyUJ1Q9+.EEW6fFjJKJPvdFRf
iB.fD1z31.h+xAjARRhGjEwL4Q2cs1akK3w4h+AiI.OmDE5GyExxwEEOqVw0
weT9rF4LjHiogP2HaHAKGahqz5B4mSfKR6TIWwkZlVTH6ujnTXs.qHT6mK+z
jSZBg5mfKD4JtzC.3CqdQCKIoJ2AuzmtRG+zUT3rSLvdqNWpdQLkJlNqPtr2
.0jifQ9FiWvbXz.GrPWNF8ES9OBugWL2hkvFrLmTmnUOyojISKpKoPngubdk
RW7.SDdNoKiyEX1byDxqeRGnHi+2CKUQUYR2Jtqr04uhJkqzBIbHauAYd4Tu
A8rHMkC82I5bQ5ohZ.1JBmG+vstopIy6RFUSWI7Q0jGg17Tf1x2fKstW0RmB
A82VBZzDdgI3cpIRvT3DcS0DdJ6c3sURGlhj9OfIxHZhbiGR3igBRLAtIss7
DZcmpMZpmdf2N.NAIEcGao0Mdy9Oq8bmaB
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/gaussian-distribution/#post-178755</guid>
					<title><![CDATA[Re: Gaussian distribution]]></title>
					<link>http://cycling74.com/forums/topic/gaussian-distribution/#post-178755</link>
					<pubDate>Thu, 15 Apr 2010 07:48:18 +0000</pubDate>
					<dc:creator>AlexHarker</dc:creator>

					<description>
						<![CDATA[
						<p><a href='http://cycling74.com/forums/users/szrp/' rel='nofollow' class='bbp-mention-link Szrp'>@Szrp</a> &#8211; There&#8217;s a much better way to generate gaussian distribution random numbers- by using the Box-Muller transform:</p>
<p><a href="http://en.wikipedia.org/wiki/Box–Muller_transform" rel="nofollow">http://en.wikipedia.org/wiki/Box–Muller_transform</a></p>
<p>It&#8217;s possible to implement this in max &#8211; I did so several years ago, but I don&#8217;t have the patch to hand &#8211; anyway &#8211; if anyone wishes to do this they could implement it fairly easily using native max objects of in java etc.</p>
<p>Regards</p>
<p>Alex</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/gaussian-distribution/#post-178756</guid>
					<title><![CDATA[Re: Gaussian distribution]]></title>
					<link>http://cycling74.com/forums/topic/gaussian-distribution/#post-178756</link>
					<pubDate>Thu, 15 Apr 2010 11:02:29 +0000</pubDate>
					<dc:creator>Szrp</dc:creator>

					<description>
						<![CDATA[
						<p>Ah, yes. I admit, I didn&#8217;t really study the issue. I just still remembered this very simple algorithm, which is quickly implemented and works well enough for most cases (I think it&#8217;s mentioned in the Dodge/Jerse Computer Music book, which is probably where I remember it from). I&#8217;m sure there are much better methods.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/gaussian-distribution/#post-178757</guid>
					<title><![CDATA[Re: Gaussian distribution]]></title>
					<link>http://cycling74.com/forums/topic/gaussian-distribution/#post-178757</link>
					<pubDate>Thu, 15 Apr 2010 17:46:27 +0000</pubDate>
					<dc:creator>tunglutti</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for the help guys!<br />
I&#8217;m Actually not using it to generate random numbers, but to compare two audio signals by making a gaussian distribution of their FFT output. But I&#8217;ll look into your suggestions and give it a go,</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/gaussian-distribution/#post-178758</guid>
					<title><![CDATA[Re: Gaussian distribution]]></title>
					<link>http://cycling74.com/forums/topic/gaussian-distribution/#post-178758</link>
					<pubDate>Thu, 15 Apr 2010 20:58:10 +0000</pubDate>
					<dc:creator>Roman Thilenius</dc:creator>

					<description>
						<![CDATA[
						<p> <br />
[   expr (sqrt(-2.*ln(1-((random(0,32767))*(1./32767)))))*(cos(((random(0,32767))*(1./32767.))*6.283185307))   ]</p>
<p>save as [110.gaussian]</p>
<p>-110<br />
 </p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

