<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nsmc/contrib, branch unfinished-experiments</title>
<subtitle>n-sphere Monte Carlo method
</subtitle>
<id>http://git.systemreboot.net/nsmc/atom?h=unfinished-experiments</id>
<link rel='self' href='http://git.systemreboot.net/nsmc/atom?h=unfinished-experiments'/>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/'/>
<updated>2021-03-19T16:27:31+00:00</updated>
<entry>
<title>Demonstrate cone sampling with rejection sampling too.</title>
<updated>2021-03-19T16:27:31+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-19T16:23:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=fa2d088d31faef95d7b96d681fbf0b14cd444afa'/>
<id>urn:sha1:fa2d088d31faef95d7b96d681fbf0b14cd444afa</id>
<content type='text'>
* contrib/cone-vector.py (sample_code): Demonstrate cone sampling with
rejection sampling too.
</content>
</entry>
<entry>
<title>Implement rejection sampling based cone sampling.</title>
<updated>2021-03-19T16:27:31+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-19T16:20:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=e4ca0edf037b924b217bd5c2223e570a8e888ee9'/>
<id>urn:sha1:e4ca0edf037b924b217bd5c2223e570a8e888ee9</id>
<content type='text'>
* contrib/cone-vector.py: Import log.
(random_planar_angle_pdf, random_vector_on_spherical_cap_pdf): New
functions.
</content>
</entry>
<entry>
<title>Factor out random planar angle generation.</title>
<updated>2021-03-19T16:16:38+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-19T16:16:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=5b8aa0c2cb6f187eba957de9400913b83bbf539a'/>
<id>urn:sha1:5b8aa0c2cb6f187eba957de9400913b83bbf539a</id>
<content type='text'>
* contrib/cone-vector.py (random_planar_angle_cdf,
random_vector_on_disk): New functions.
(random_vector_on_spherical_cap): Rename to
random_vector_on_spherical_cap_cdf. Call random_planar_angle_cdf and
random_vector_on_disk.
(sample_code): Call random_vector_on_spherical_cap_cdf instead of
random_vector_on_spherical_cap.
</content>
</entry>
<entry>
<title>Put sample code in separate function.</title>
<updated>2021-03-15T10:07:05+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-15T10:07:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=d3c68431fb8a1eb444d5635faa13fd4ffb0073f1'/>
<id>urn:sha1:d3c68431fb8a1eb444d5635faa13fd4ffb0073f1</id>
<content type='text'>
* contrib/cone-vector.py: Call sample_code when run as a script.
(sample_code): New function.
</content>
</entry>
<entry>
<title>Remove unused imports.</title>
<updated>2021-03-15T10:00:35+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-15T09:58:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=2b89e25cc18cd82df1a3720e7e4739b007f14879'/>
<id>urn:sha1:2b89e25cc18cd82df1a3720e7e4739b007f14879</id>
<content type='text'>
* contrib/cone-vector.py: Don't import zeros from numpy and gamma from
scipy.special.
</content>
</entry>
<entry>
<title>Add function docstrings.</title>
<updated>2021-03-15T09:57:40+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-15T09:55:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=c50fc913662a88995f5e338764dbf4efcfa71f45'/>
<id>urn:sha1:c50fc913662a88995f5e338764dbf4efcfa71f45</id>
<content type='text'>
* contrib/cone-vector.py (random_vector_on_sphere,
planar_angle2solid_angle_fraction, solid_angle_fraction2planar_angle,
rotate_from_nth_canonical, random_vector_on_spherical_cap): Add
docstrings.
</content>
</entry>
<entry>
<title>Remove space between function name and bracket.</title>
<updated>2021-03-15T09:57:40+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-15T09:30:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=73cae57f5fab5e92032916c61523ec79427e8335'/>
<id>urn:sha1:73cae57f5fab5e92032916c61523ec79427e8335</id>
<content type='text'>
* contrib/cone-vector.py (random_vector_on_sphere,
planar_angle2solid_angle_fraction, solid_angle_fraction2planar_angle,
rotate_from_nth_canonical, random_vector_on_spherical_cap): Remove
space between function name and bracket.
</content>
</entry>
<entry>
<title>Implement simplified cone sampling algorithm.</title>
<updated>2021-03-15T09:57:24+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-15T09:22:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=d771e8524094493f8a7c8b25b660b18acf837f92'/>
<id>urn:sha1:d771e8524094493f8a7c8b25b660b18acf837f92</id>
<content type='text'>
* contrib/cone-vector.py: Don't import tan.
(random_vector_on_spherical_cap): Implement simplified algorithm that
directly samples the surface of the sphere instead of sampling a disk
and projecting it onto the surface.
</content>
</entry>
<entry>
<title>Vectorize functions.</title>
<updated>2021-03-15T09:18:30+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-15T09:17:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=d5ab1ba4a4373821bc27a35f2a5f7dcb9e955dd4'/>
<id>urn:sha1:d5ab1ba4a4373821bc27a35f2a5f7dcb9e955dd4</id>
<content type='text'>
* contrib/cone-vector.py: Import where.
(planar_angle2solid_angle_fraction,
solid_angle_fraction2planar_angle): Vectorize functions.
</content>
</entry>
<entry>
<title>Fix solid_angle_fraction2planar_angle for solid_angle_fraction &gt; 1/2.</title>
<updated>2021-03-15T09:13:22+00:00</updated>
<author>
<name>Arun Isaac</name>
</author>
<published>2021-03-15T09:13:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.systemreboot.net/nsmc/commit/?id=8c08eff9dc4a46c9c0fb41330e45f4d0356ecdcb'/>
<id>urn:sha1:8c08eff9dc4a46c9c0fb41330e45f4d0356ecdcb</id>
<content type='text'>
* contrib/cone-vector.py (solid_angle_fraction2planar_angle): Fix for
solid_angle_fraction &gt; 1/2.
</content>
</entry>
</feed>
