1. Takafumi Arakaki
  2. tkf.bitbucket.org

Commits

Takafumi Arakaki  committed ee037ea

railgun/1cf0a4cb18df

  • Participants
  • Parent commits ee0d99e
  • Branches default

Comments (0)

Files changed (40)

File railgun-doc/_images/bifurcation_diagram_00.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_00.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_001.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_001.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_002.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_002.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_003.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_003.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_01.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_01.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_011.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_011.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_012.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_012.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_013.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_013.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_02.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_02.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_021.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_021.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_022.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_022.png

  • Ignore whitespace
Added
New image

File railgun-doc/_images/bifurcation_diagram_023.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/_images/bifurcation_diagram_023.png

  • Ignore whitespace
Added
New image

File railgun-doc/_sources/samples/gslctypes/gslctypes.txt

View file
  • Ignore whitespace
+.. _gslctypes:
+
+Using RailGun with GSL (GNU Scientific Library)
+===============================================
+
+Class :class:`gslctypes_rng.cmem` defined in the following file
+(``gslctypes_rng.py``) is a class you can give to :func:`railgun.cmem`.
+See :ref:`logistic_map` for usage.
+
+.. literalinclude:: gslctypes_rng.py
+   :language: python

File railgun-doc/_sources/samples/index.txt

View file
  • Ignore whitespace
 
    lode/*
    lode_rk4/*
+   logistic_map/*
+   glsctypes/*
    */*

File railgun-doc/_sources/samples/logistic_map/logistic_map.txt

View file
  • Ignore whitespace
+.. _logistic_map:
+
+Logistic map with noise additive (usage of :func:`railgun.cmem`)
+================================================================
+
+You will need the file ``gslctypes_rng.py`` (see :ref:`gslctypes`).
+
+Python code
+-----------
+``logistic_map.py``:
+
+.. literalinclude:: logistic_map.py
+   :language: python
+
+``bifurcation_diagram.py``:
+
+.. literalinclude:: bifurcation_diagram.py
+   :language: python
+
+C code
+------
+``logistic_map.c``:
+
+.. literalinclude:: logistic_map.c
+   :language: c
+
+Output
+------
+.. plot:: source/samples/logistic_map/bifurcation_diagram.py

File railgun-doc/index.html

View file
  • Ignore whitespace
 <li class="toctree-l1"><a class="reference internal" href="samples/index.html">Samples</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="samples/lode/lode.html">Linear Ordinary Differential Equation</a></li>
 <li class="toctree-l2"><a class="reference internal" href="samples/lode_rk4/lode_rk4.html">Runge-Kutta method (usage of <tt class="docutils literal"><span class="pre">_cmemsubsets_</span></tt>)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="samples/logistic_map/logistic_map.html">Logistic map with noise additive (usage of <tt class="docutils literal"><span class="pre">railgun.cmem()</span></tt>)</a></li>
+<li class="toctree-l2"><a class="reference internal" href="samples/gslctypes/gslctypes.html">Using RailGun with GSL (GNU Scientific Library)</a></li>
 <li class="toctree-l2"><a class="reference internal" href="samples/kaplan_yorke_map/kaplan_yorke_map.html">Kaplan-Yorke map</a></li>
 </ul>
 </li>

File railgun-doc/objects.inv

  • Ignore whitespace
File contents unchanged.

File railgun-doc/plot_directive/samples/logistic_map/bifurcation_diagram.py

View file
  • Ignore whitespace
+from logistic_map import LogisticMap
+import pylab
+
+lmap = LogisticMap(1000)
+
+pylab.figure(1)
+lmap.plot_bifurcation_diagram(0, 4, 500, sigma=1e-5)
+pylab.title(r'$\sigma=10^{-5}$')
+
+pylab.figure(2)
+lmap.plot_bifurcation_diagram(0, 4, 500, sigma=1e-3)
+pylab.title(r'$\sigma=10^{-3}$')
+
+pylab.figure(3)
+lmap.plot_bifurcation_diagram(0, 4, 500, sigma=1e-2)
+pylab.title(r'$\sigma=10^{-2}$')
+
+pylab.show()

File railgun-doc/plot_directive/samples/logistic_map/bifurcation_diagram_00.hires.png

  • Ignore whitespace
Added
New image

File railgun-doc/plot_directive/samples/logistic_map/bifurcation_diagram_00.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/plot_directive/samples/logistic_map/bifurcation_diagram_01.hires.png

  • Ignore whitespace
Added
New image

File railgun-doc/plot_directive/samples/logistic_map/bifurcation_diagram_01.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/plot_directive/samples/logistic_map/bifurcation_diagram_02.hires.png

  • Ignore whitespace
Added
New image

File railgun-doc/plot_directive/samples/logistic_map/bifurcation_diagram_02.pdf

  • Ignore whitespace
Binary file added.

File railgun-doc/samples/gslctypes/gslctypes.html

View file
  • Ignore whitespace
+
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    
+    <title>Using RailGun with GSL (GNU Scientific Library) &mdash; RailGun v0.1.7 documentation</title>
+    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
+    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
+    <script type="text/javascript">
+      var DOCUMENTATION_OPTIONS = {
+        URL_ROOT:    '../../',
+        VERSION:     '0.1.7',
+        COLLAPSE_INDEX: false,
+        FILE_SUFFIX: '.html',
+        HAS_SOURCE:  true
+      };
+    </script>
+    <script type="text/javascript" src="../../_static/jquery.js"></script>
+    <script type="text/javascript" src="../../_static/underscore.js"></script>
+    <script type="text/javascript" src="../../_static/doctools.js"></script>
+    <link rel="top" title="RailGun v0.1.7 documentation" href="../../index.html" />
+    <link rel="up" title="Samples" href="../index.html" />
+    <link rel="next" title="Kaplan-Yorke map" href="../kaplan_yorke_map/kaplan_yorke_map.html" />
+    <link rel="prev" title="Logistic map with noise additive (usage of railgun.cmem)" href="../logistic_map/logistic_map.html" /> 
+  </head>
+  <body>
+    <div class="related">
+      <h3>Navigation</h3>
+      <ul>
+        <li class="right" style="margin-right: 10px">
+          <a href="../../genindex.html" title="General Index"
+             accesskey="I">index</a></li>
+        <li class="right" >
+          <a href="../../py-modindex.html" title="Python Module Index"
+             >modules</a> |</li>
+        <li class="right" >
+          <a href="../kaplan_yorke_map/kaplan_yorke_map.html" title="Kaplan-Yorke map"
+             accesskey="N">next</a> |</li>
+        <li class="right" >
+          <a href="../logistic_map/logistic_map.html" title="Logistic map with noise additive (usage of railgun.cmem)"
+             accesskey="P">previous</a> |</li>
+        <li><a href="../../index.html">RailGun v0.1.7 documentation</a> &raquo;</li>
+          <li><a href="../index.html" accesskey="U">Samples</a> &raquo;</li> 
+      </ul>
+    </div>  
+
+    <div class="document">
+      <div class="documentwrapper">
+        <div class="bodywrapper">
+          <div class="body">
+            
+  <div class="section" id="using-railgun-with-gsl-gnu-scientific-library">
+<span id="gslctypes"></span><h1>Using RailGun with GSL (GNU Scientific Library)<a class="headerlink" href="#using-railgun-with-gsl-gnu-scientific-library" title="Permalink to this headline">¶</a></h1>
+<p>Class <tt class="xref py py-class docutils literal"><span class="pre">gslctypes_rng.cmem</span></tt> defined in the following file
+(<tt class="docutils literal"><span class="pre">gslctypes_rng.py</span></tt>) is a class you can give to <tt class="xref py py-func docutils literal"><span class="pre">railgun.cmem()</span></tt>.
+See <a class="reference internal" href="../logistic_map/logistic_map.html#logistic-map"><em>Logistic map with noise additive (usage of railgun.cmem)</em></a> for usage.</p>
+<div class="highlight-python"><div class="highlight"><pre><span class="kn">import</span> <span class="nn">ctypes</span>
+<span class="kn">from</span> <span class="nn">ctypes</span> <span class="kn">import</span> <span class="p">(</span><span class="n">POINTER</span><span class="p">,</span> <span class="n">c_char_p</span><span class="p">,</span> <span class="n">c_size_t</span><span class="p">,</span> <span class="n">c_int</span><span class="p">,</span> <span class="n">c_long</span><span class="p">,</span> <span class="n">c_ulong</span><span class="p">,</span>
+                    <span class="n">c_double</span><span class="p">,</span> <span class="n">c_void_p</span><span class="p">)</span>
+<span class="kn">from</span> <span class="nn">ctypes.util</span> <span class="kn">import</span> <span class="n">find_library</span>
+
+
+<span class="k">class</span> <span class="nc">_c_gsl_rng_type</span><span class="p">(</span><span class="n">ctypes</span><span class="o">.</span><span class="n">Structure</span><span class="p">):</span>
+    <span class="n">_fields_</span> <span class="o">=</span> <span class="p">[(</span><span class="s">&#39;name&#39;</span><span class="p">,</span> <span class="n">c_char_p</span><span class="p">),</span>
+                <span class="p">(</span><span class="s">&#39;max&#39;</span><span class="p">,</span> <span class="n">c_long</span><span class="p">),</span>
+                <span class="p">(</span><span class="s">&#39;min&#39;</span><span class="p">,</span> <span class="n">c_size_t</span><span class="p">),</span>
+                <span class="p">(</span><span class="s">&#39;__set&#39;</span><span class="p">,</span> <span class="n">c_void_p</span><span class="p">),</span>
+                <span class="p">(</span><span class="s">&#39;__get&#39;</span><span class="p">,</span> <span class="n">c_void_p</span><span class="p">),</span>
+                <span class="p">(</span><span class="s">&#39;__get_double&#39;</span><span class="p">,</span> <span class="n">c_void_p</span><span class="p">),</span>
+                <span class="p">]</span>
+<span class="n">_c_gsl_rng_type_p</span> <span class="o">=</span> <span class="n">POINTER</span><span class="p">(</span><span class="n">_c_gsl_rng_type</span><span class="p">)</span>
+
+
+<span class="k">class</span> <span class="nc">_c_gsl_rng</span><span class="p">(</span><span class="n">ctypes</span><span class="o">.</span><span class="n">Structure</span><span class="p">):</span>
+    <span class="n">_fields_</span> <span class="o">=</span> <span class="p">[(</span><span class="s">&#39;type&#39;</span><span class="p">,</span> <span class="n">_c_gsl_rng_type_p</span><span class="p">),</span>
+                <span class="p">(</span><span class="s">&#39;state&#39;</span><span class="p">,</span> <span class="n">c_void_p</span><span class="p">)]</span>
+<span class="n">_c_gsl_rng_p</span> <span class="o">=</span> <span class="n">POINTER</span><span class="p">(</span><span class="n">_c_gsl_rng</span><span class="p">)</span>
+
+
+<span class="k">class</span> <span class="nc">_GSLFuncLoader</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
+
+    <span class="c"># see: http://code.activestate.com/recipes/576549-gsl-with-python3/</span>
+    <span class="n">gslcblas</span> <span class="o">=</span> <span class="n">ctypes</span><span class="o">.</span><span class="n">CDLL</span><span class="p">(</span><span class="n">find_library</span><span class="p">(</span><span class="s">&#39;gslcblas&#39;</span><span class="p">),</span> <span class="n">mode</span><span class="o">=</span><span class="n">ctypes</span><span class="o">.</span><span class="n">RTLD_GLOBAL</span><span class="p">)</span>
+    <span class="n">gsl</span> <span class="o">=</span> <span class="n">ctypes</span><span class="o">.</span><span class="n">CDLL</span><span class="p">(</span><span class="n">find_library</span><span class="p">(</span><span class="s">&#39;gsl&#39;</span><span class="p">))</span>
+
+    <span class="k">def</span> <span class="nf">_load_1</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">argtypes</span><span class="o">=</span><span class="bp">None</span><span class="p">,</span> <span class="n">restype</span><span class="o">=</span><span class="bp">None</span><span class="p">):</span>
+        <span class="n">func</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">gsl</span><span class="p">,</span> <span class="n">name</span><span class="p">)</span>
+        <span class="k">if</span> <span class="n">argtypes</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span><span class="p">:</span>
+            <span class="n">func</span><span class="o">.</span><span class="n">argtypes</span> <span class="o">=</span> <span class="n">argtypes</span>
+        <span class="k">if</span> <span class="n">restype</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span><span class="p">:</span>
+            <span class="n">func</span><span class="o">.</span><span class="n">restype</span> <span class="o">=</span> <span class="n">restype</span>
+        <span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">func</span><span class="p">)</span>
+        <span class="k">return</span> <span class="n">func</span>
+
+    <span class="k">def</span> <span class="nf">_load</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">argtypes</span><span class="o">=</span><span class="bp">None</span><span class="p">,</span> <span class="n">restype</span><span class="o">=</span><span class="bp">None</span><span class="p">):</span>
+        <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">name</span> <span class="p">,</span><span class="nb">basestring</span><span class="p">):</span>
+            <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_load_1</span><span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="n">argtypes</span><span class="p">,</span> <span class="n">restype</span><span class="p">)</span>
+        <span class="k">else</span><span class="p">:</span>
+            <span class="k">try</span><span class="p">:</span>
+                <span class="k">return</span> <span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">_load_1</span><span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">argtypes</span><span class="p">,</span> <span class="n">restype</span><span class="p">)</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">name</span><span class="p">]</span>
+            <span class="k">except</span> <span class="ne">TypeError</span><span class="p">:</span>
+                <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s">&#39;name=</span><span class="si">%r</span><span class="s"> should be a string or iterative &#39;</span>
+                                 <span class="s">&#39;of string&#39;</span> <span class="o">%</span> <span class="n">name</span><span class="p">)</span>
+
+
+<span class="n">func</span> <span class="o">=</span> <span class="n">_GSLFuncLoader</span><span class="p">()</span>
+<span class="n">func</span><span class="o">.</span><span class="n">_load</span><span class="p">(</span><span class="s">&#39;gsl_strerror&#39;</span><span class="p">,</span> <span class="p">[</span><span class="n">c_int</span><span class="p">],</span> <span class="n">c_char_p</span><span class="p">)</span>
+<span class="n">func</span><span class="o">.</span><span class="n">_load</span><span class="p">(</span><span class="s">&#39;gsl_rng_alloc&#39;</span><span class="p">,</span> <span class="p">[</span><span class="n">_c_gsl_rng_type_p</span><span class="p">],</span> <span class="n">_c_gsl_rng_p</span><span class="p">)</span>
+<span class="n">func</span><span class="o">.</span><span class="n">_load</span><span class="p">(</span><span class="s">&#39;gsl_rng_set&#39;</span><span class="p">,</span> <span class="p">[</span><span class="n">_c_gsl_rng_p</span><span class="p">,</span> <span class="n">c_ulong</span><span class="p">])</span>
+<span class="n">func</span><span class="o">.</span><span class="n">_load</span><span class="p">(</span><span class="s">&#39;gsl_rng_free&#39;</span><span class="p">,</span> <span class="p">[</span><span class="n">_c_gsl_rng_p</span><span class="p">])</span>
+<span class="n">func</span><span class="o">.</span><span class="n">_load</span><span class="p">(</span><span class="s">&#39;gsl_rng_types_setup&#39;</span><span class="p">,</span>
+           <span class="n">restype</span><span class="o">=</span><span class="n">c_void_p</span><span class="p">)</span>  <span class="c"># POINTER(_c_gsl_rng_p)</span>
+<span class="n">func</span><span class="o">.</span><span class="n">_load</span><span class="p">([</span><span class="s">&#39;gsl_ran_gaussian&#39;</span><span class="p">,</span>
+            <span class="s">&#39;gsl_ran_gaussian_ziggurat&#39;</span><span class="p">,</span>
+            <span class="s">&#39;gsl_ran_gaussian_ratio_method&#39;</span><span class="p">],</span>
+           <span class="p">[</span><span class="n">_c_gsl_rng_p</span><span class="p">,</span> <span class="n">c_double</span><span class="p">],</span>
+           <span class="n">c_double</span><span class="p">)</span>
+
+
+<span class="n">gsl_strerror</span> <span class="o">=</span> <span class="n">func</span><span class="o">.</span><span class="n">gsl_strerror</span>
+
+
+<span class="k">def</span> <span class="nf">_get_gsl_rng_type_p_dict</span><span class="p">():</span>
+    <span class="sd">&quot;&quot;&quot;</span>
+<span class="sd">    Get all ``gsl_rng_type`` as dict which has pointer to each object</span>
+
+<span class="sd">    This is equivalent to C code bellow which is from GSL document:</span>
+
+<span class="sd">    .. sourcecode:: c</span>
+
+<span class="sd">          const gsl_rng_type **t, **t0;</span>
+<span class="sd">          t0 = gsl_rng_types_setup ();</span>
+<span class="sd">          for (t = t0; *t != 0; t++)</span>
+<span class="sd">            {</span>
+<span class="sd">              printf (&quot;%s\n&quot;, (*t)-&gt;name);  /* instead, store t to dict */</span>
+<span class="sd">            }</span>
+
+<span class="sd">    &quot;&quot;&quot;</span>
+    <span class="n">t</span> <span class="o">=</span> <span class="n">func</span><span class="o">.</span><span class="n">gsl_rng_types_setup</span><span class="p">()</span>
+    <span class="n">dt</span> <span class="o">=</span> <span class="n">ctypes</span><span class="o">.</span><span class="n">sizeof</span><span class="p">(</span><span class="n">c_void_p</span><span class="p">)</span>
+    <span class="n">dct</span> <span class="o">=</span> <span class="p">{}</span>
+    <span class="k">while</span> <span class="bp">True</span><span class="p">:</span>
+        <span class="n">a</span> <span class="o">=</span> <span class="n">c_void_p</span><span class="o">.</span><span class="n">from_address</span><span class="p">(</span><span class="n">t</span><span class="p">)</span>
+        <span class="k">if</span> <span class="n">a</span><span class="o">.</span><span class="n">value</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">:</span>
+            <span class="k">break</span>
+        <span class="n">name</span> <span class="o">=</span> <span class="n">c_char_p</span><span class="o">.</span><span class="n">from_address</span><span class="p">(</span><span class="n">a</span><span class="o">.</span><span class="n">value</span><span class="p">)</span><span class="o">.</span><span class="n">value</span>
+        <span class="n">dct</span><span class="p">[</span><span class="n">name</span><span class="p">]</span> <span class="o">=</span> <span class="n">ctypes</span><span class="o">.</span><span class="n">cast</span><span class="p">(</span><span class="n">a</span><span class="p">,</span> <span class="n">_c_gsl_rng_type_p</span><span class="p">)</span>
+        <span class="n">t</span> <span class="o">+=</span> <span class="n">dt</span>
+    <span class="k">return</span> <span class="n">dct</span>
+
+
+<span class="k">class</span> <span class="nc">gsl_rng</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
+    <span class="n">_gsl_rng_alloc</span> <span class="o">=</span> <span class="n">func</span><span class="o">.</span><span class="n">gsl_rng_alloc</span>
+    <span class="n">_gsl_rng_set</span> <span class="o">=</span> <span class="n">func</span><span class="o">.</span><span class="n">gsl_rng_set</span>
+    <span class="n">_gsl_rng_free</span> <span class="o">=</span> <span class="n">func</span><span class="o">.</span><span class="n">gsl_rng_free</span>
+    <span class="n">_gsl_rng_type_p_dict</span> <span class="o">=</span> <span class="n">_get_gsl_rng_type_p_dict</span><span class="p">()</span>
+    <span class="n">_ctype_</span> <span class="o">=</span> <span class="n">_c_gsl_rng_p</span>  <span class="c"># for railgun</span>
+
+    <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">seed</span><span class="o">=</span><span class="bp">None</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="s">&#39;mt19937&#39;</span><span class="p">):</span>
+        <span class="bp">self</span><span class="o">.</span><span class="n">_gsl_rng_name</span> <span class="o">=</span> <span class="n">name</span>
+        <span class="bp">self</span><span class="o">.</span><span class="n">_gsl_rng_type_p</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_gsl_rng_type_p_dict</span><span class="p">[</span><span class="n">name</span><span class="p">]</span>
+        <span class="bp">self</span><span class="o">.</span><span class="n">_cdata_</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_gsl_rng_alloc</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_gsl_rng_type_p</span><span class="p">)</span>
+        <span class="c"># the name &#39;_cdata_&#39; is for railgun</span>
+        <span class="k">if</span> <span class="n">seed</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span><span class="p">:</span>
+            <span class="bp">self</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="n">seed</span><span class="p">)</span>
+
+    <span class="k">def</span> <span class="nf">__del__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
+        <span class="bp">self</span><span class="o">.</span><span class="n">_gsl_rng_free</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_cdata_</span><span class="p">)</span>
+
+    <span class="k">def</span> <span class="nf">set</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">seed</span><span class="p">):</span>
+        <span class="bp">self</span><span class="o">.</span><span class="n">_gsl_rng_set</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_cdata_</span><span class="p">,</span> <span class="n">seed</span><span class="p">)</span>
+
+    <span class="n">_gsl_ran_gaussian</span> <span class="o">=</span> <span class="p">{</span>
+        <span class="s">&#39;&#39;</span><span class="p">:</span> <span class="n">func</span><span class="o">.</span><span class="n">gsl_ran_gaussian</span><span class="p">,</span>
+        <span class="s">&#39;ziggurat&#39;</span><span class="p">:</span> <span class="n">func</span><span class="o">.</span><span class="n">gsl_ran_gaussian_ziggurat</span><span class="p">,</span>
+        <span class="s">&#39;ratio_method&#39;</span><span class="p">:</span> <span class="n">func</span><span class="o">.</span><span class="n">gsl_ran_gaussian_ratio_method</span><span class="p">,</span>
+        <span class="p">}</span>
+
+    <span class="k">def</span> <span class="nf">ran_gaussian</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">sigma</span><span class="o">=</span><span class="mf">1.0</span><span class="p">,</span> <span class="n">method</span><span class="o">=</span><span class="s">&#39;&#39;</span><span class="p">):</span>
+        <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_gsl_ran_gaussian</span><span class="p">[</span><span class="n">method</span><span class="p">](</span><span class="bp">self</span><span class="o">.</span><span class="n">_cdata_</span><span class="p">,</span> <span class="n">sigma</span><span class="p">)</span>
+</pre></div>
+</div>
+</div>
+
+
+          </div>
+        </div>
+      </div>
+      <div class="sphinxsidebar">
+        <div class="sphinxsidebarwrapper">
+  <h4>Previous topic</h4>
+  <p class="topless"><a href="../logistic_map/logistic_map.html"
+                        title="previous chapter">Logistic map with noise additive (usage of <tt class="docutils literal"><span class="pre">railgun.cmem</span></tt>)</a></p>
+  <h4>Next topic</h4>
+  <p class="topless"><a href="../kaplan_yorke_map/kaplan_yorke_map.html"
+                        title="next chapter">Kaplan-Yorke map</a></p>
+  <h3>This Page</h3>
+  <ul class="this-page-menu">
+    <li><a href="../../_sources/samples/gslctypes/gslctypes.txt"
+           rel="nofollow">Show Source</a></li>
+  </ul>
+<div id="searchbox" style="display: none">
+  <h3>Quick search</h3>
+    <form class="search" action="../../search.html" method="get">
+      <input type="text" name="q" size="18" />
+      <input type="submit" value="Go" />
+      <input type="hidden" name="check_keywords" value="yes" />
+      <input type="hidden" name="area" value="default" />
+    </form>
+    <p class="searchtip" style="font-size: 90%">
+    Enter search terms or a module, class or function name.
+    </p>
+</div>
+<script type="text/javascript">$('#searchbox').show(0);</script>
+        </div>
+      </div>
+      <div class="clearer"></div>
+    </div>
+    <div class="related">
+      <h3>Navigation</h3>
+      <ul>
+        <li class="right" style="margin-right: 10px">
+          <a href="../../genindex.html" title="General Index"
+             >index</a></li>
+        <li class="right" >
+          <a href="../../py-modindex.html" title="Python Module Index"
+             >modules</a> |</li>
+        <li class="right" >
+          <a href="../kaplan_yorke_map/kaplan_yorke_map.html" title="Kaplan-Yorke map"
+             >next</a> |</li>
+        <li class="right" >
+          <a href="../logistic_map/logistic_map.html" title="Logistic map with noise additive (usage of railgun.cmem)"
+             >previous</a> |</li>
+        <li><a href="../../index.html">RailGun v0.1.7 documentation</a> &raquo;</li>
+          <li><a href="../index.html" >Samples</a> &raquo;</li> 
+      </ul>
+    </div>
+    <div class="footer">
+        &copy; Copyright 2010, Takafumi Arakaki.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
+    </div>
+  </body>
+</html>

File railgun-doc/samples/index.html

View file
  • Ignore whitespace
 <li class="toctree-l2"><a class="reference internal" href="lode_rk4/lode_rk4.html#reference">Reference</a></li>
 </ul>
 </li>
+<li class="toctree-l1"><a class="reference internal" href="logistic_map/logistic_map.html">Logistic map with noise additive (usage of <tt class="docutils literal"><span class="pre">railgun.cmem()</span></tt>)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="logistic_map/logistic_map.html#python-code">Python code</a></li>
+<li class="toctree-l2"><a class="reference internal" href="logistic_map/logistic_map.html#c-code">C code</a></li>
+<li class="toctree-l2"><a class="reference internal" href="logistic_map/logistic_map.html#output">Output</a></li>
+</ul>
+</li>
+<li class="toctree-l1"><a class="reference internal" href="gslctypes/gslctypes.html">Using RailGun with GSL (GNU Scientific Library)</a></li>
 <li class="toctree-l1"><a class="reference internal" href="kaplan_yorke_map/kaplan_yorke_map.html">Kaplan-Yorke map</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="kaplan_yorke_map/kaplan_yorke_map.html#output">Output</a></li>
 <li class="toctree-l2"><a class="reference internal" href="kaplan_yorke_map/kaplan_yorke_map.html#python-code">Python code</a></li>

File railgun-doc/samples/logistic_map/logistic_map.html

View file
  • Ignore whitespace
+
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    
+    <title>Logistic map with noise additive (usage of railgun.cmem()) &mdash; RailGun v0.1.7 documentation</title>
+    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
+    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
+    <script type="text/javascript">
+      var DOCUMENTATION_OPTIONS = {
+        URL_ROOT:    '../../',
+        VERSION:     '0.1.7',
+        COLLAPSE_INDEX: false,
+        FILE_SUFFIX: '.html',
+        HAS_SOURCE:  true
+      };
+    </script>
+    <script type="text/javascript" src="../../_static/jquery.js"></script>
+    <script type="text/javascript" src="../../_static/underscore.js"></script>
+    <script type="text/javascript" src="../../_static/doctools.js"></script>
+    <link rel="top" title="RailGun v0.1.7 documentation" href="../../index.html" />
+    <link rel="up" title="Samples" href="../index.html" />
+    <link rel="next" title="Using RailGun with GSL (GNU Scientific Library)" href="../gslctypes/gslctypes.html" />
+    <link rel="prev" title="Runge-Kutta method (usage of _cmemsubsets_)" href="../lode_rk4/lode_rk4.html" /> 
+  </head>
+  <body>
+    <div class="related">
+      <h3>Navigation</h3>
+      <ul>
+        <li class="right" style="margin-right: 10px">
+          <a href="../../genindex.html" title="General Index"
+             accesskey="I">index</a></li>
+        <li class="right" >
+          <a href="../../py-modindex.html" title="Python Module Index"
+             >modules</a> |</li>
+        <li class="right" >
+          <a href="../gslctypes/gslctypes.html" title="Using RailGun with GSL (GNU Scientific Library)"
+             accesskey="N">next</a> |</li>
+        <li class="right" >
+          <a href="../lode_rk4/lode_rk4.html" title="Runge-Kutta method (usage of _cmemsubsets_)"
+             accesskey="P">previous</a> |</li>
+        <li><a href="../../index.html">RailGun v0.1.7 documentation</a> &raquo;</li>
+          <li><a href="../index.html" accesskey="U">Samples</a> &raquo;</li> 
+      </ul>
+    </div>  
+
+    <div class="document">
+      <div class="documentwrapper">
+        <div class="bodywrapper">
+          <div class="body">
+            
+  <div class="section" id="logistic-map-with-noise-additive-usage-of-railgun-cmem">
+<span id="logistic-map"></span><h1>Logistic map with noise additive (usage of <tt class="xref py py-func docutils literal"><span class="pre">railgun.cmem()</span></tt>)<a class="headerlink" href="#logistic-map-with-noise-additive-usage-of-railgun-cmem" title="Permalink to this headline">¶</a></h1>
+<p>You will need the file <tt class="docutils literal"><span class="pre">gslctypes_rng.py</span></tt> (see <a class="reference internal" href="../gslctypes/gslctypes.html#gslctypes"><em>Using RailGun with GSL (GNU Scientific Library)</em></a>).</p>
+<div class="section" id="python-code">
+<h2>Python code<a class="headerlink" href="#python-code" title="Permalink to this headline">¶</a></h2>
+<p><tt class="docutils literal"><span class="pre">logistic_map.py</span></tt>:</p>
+<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">railgun</span> <span class="kn">import</span> <span class="n">SimObject</span><span class="p">,</span> <span class="n">relpath</span><span class="p">,</span> <span class="n">cmem</span>
+<span class="kn">import</span> <span class="nn">numpy</span>
+<span class="kn">from</span> <span class="nn">gslctypes_rng</span> <span class="kn">import</span> <span class="n">gsl_rng</span>
+
+<span class="k">class</span> <span class="nc">LogisticMap</span><span class="p">(</span><span class="n">SimObject</span><span class="p">):</span>
+
+    <span class="n">_clibname_</span> <span class="o">=</span> <span class="s">&#39;liblogistic_map.so&#39;</span>
+    <span class="n">_clibdir_</span> <span class="o">=</span> <span class="n">relpath</span><span class="p">(</span><span class="s">&#39;.&#39;</span><span class="p">,</span> <span class="n">__file__</span><span class="p">)</span>
+    <span class="n">_cmembers_</span> <span class="o">=</span> <span class="p">[</span>
+        <span class="s">&#39;num_i&#39;</span><span class="p">,</span>
+        <span class="s">&#39;double xt[i]&#39;</span><span class="p">,</span>
+        <span class="s">&#39;double mu&#39;</span><span class="p">,</span>
+        <span class="s">&#39;double sigma&#39;</span><span class="p">,</span>
+        <span class="n">cmem</span><span class="p">(</span><span class="n">gsl_rng</span><span class="p">,</span> <span class="s">&#39;rng&#39;</span><span class="p">),</span>
+        <span class="p">]</span>
+    <span class="n">_cfuncs_</span> <span class="o">=</span> <span class="p">[</span><span class="s">&quot;xt gene_seq()&quot;</span><span class="p">]</span>
+
+    <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">num_i</span><span class="p">,</span> <span class="n">seed</span><span class="o">=</span><span class="bp">None</span><span class="p">,</span> <span class="o">**</span><span class="n">kwds</span><span class="p">):</span>
+        <span class="n">SimObject</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">num_i</span><span class="o">=</span><span class="n">num_i</span><span class="p">,</span> <span class="n">rng</span><span class="o">=</span><span class="n">gsl_rng</span><span class="p">(</span><span class="n">seed</span><span class="p">),</span> <span class="o">**</span><span class="n">kwds</span><span class="p">)</span>
+
+    <span class="k">def</span> <span class="nf">_cwrap_gene_seq</span><span class="p">(</span><span class="n">old_gene_seq</span><span class="p">):</span>
+        <span class="k">def</span> <span class="nf">gene_seq</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">**</span><span class="n">kwds</span><span class="p">):</span>
+            <span class="c"># use the previous &quot;last state&quot; as initial state, but setv</span>
+            <span class="c"># may overwrite this by `xt_0=SOMEVAL`</span>
+            <span class="bp">self</span><span class="o">.</span><span class="n">xt</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">xt</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
+            <span class="bp">self</span><span class="o">.</span><span class="n">setv</span><span class="p">(</span><span class="o">**</span><span class="n">kwds</span><span class="p">)</span>
+            <span class="k">return</span> <span class="n">old_gene_seq</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
+        <span class="k">return</span> <span class="n">gene_seq</span>
+
+    <span class="k">def</span> <span class="nf">bifurcation_diagram</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">mu_start</span><span class="p">,</span> <span class="n">mu_stop</span><span class="p">,</span> <span class="n">mu_num</span><span class="p">,</span> <span class="o">**</span><span class="n">kwds</span><span class="p">):</span>
+        <span class="n">mu_list</span> <span class="o">=</span> <span class="n">numpy</span><span class="o">.</span><span class="n">linspace</span><span class="p">(</span><span class="n">mu_start</span><span class="p">,</span> <span class="n">mu_stop</span><span class="p">,</span> <span class="n">mu_num</span><span class="p">)</span>
+        <span class="bp">self</span><span class="o">.</span><span class="n">gene_seq</span><span class="p">(</span><span class="n">mu</span><span class="o">=</span><span class="n">mu_list</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="o">**</span><span class="n">kwds</span><span class="p">)</span>  <span class="c"># through first steps away</span>
+        <span class="n">xt_list</span> <span class="o">=</span> <span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">gene_seq</span><span class="p">(</span><span class="n">mu</span><span class="o">=</span><span class="n">mu</span><span class="p">)</span><span class="o">.</span><span class="n">copy</span><span class="p">()</span> <span class="k">for</span> <span class="n">mu</span> <span class="ow">in</span> <span class="n">mu_list</span><span class="p">]</span>
+        <span class="k">return</span> <span class="p">(</span><span class="n">mu_list</span><span class="p">,</span> <span class="n">xt_list</span><span class="p">)</span>
+
+    <span class="k">def</span> <span class="nf">plot_bifurcation_diagram</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">mu_start</span><span class="p">,</span> <span class="n">mu_stop</span><span class="p">,</span> <span class="n">mu_num</span><span class="p">,</span> <span class="o">**</span><span class="n">kwds</span><span class="p">):</span>
+        <span class="kn">import</span> <span class="nn">pylab</span>
+        <span class="n">bd</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">bifurcation_diagram</span><span class="p">(</span><span class="n">mu_start</span><span class="p">,</span> <span class="n">mu_stop</span><span class="p">,</span> <span class="n">mu_num</span><span class="p">,</span> <span class="o">**</span><span class="n">kwds</span><span class="p">)</span>
+        <span class="n">ones</span> <span class="o">=</span> <span class="n">numpy</span><span class="o">.</span><span class="n">ones</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">num_i</span><span class="p">)</span>
+
+        <span class="k">for</span> <span class="p">(</span><span class="n">mu</span><span class="p">,</span> <span class="n">x</span><span class="p">)</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="o">*</span><span class="n">bd</span><span class="p">):</span>
+            <span class="n">pylab</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">ones</span> <span class="o">*</span> <span class="n">mu</span><span class="p">,</span> <span class="n">x</span><span class="p">,</span> <span class="s">&#39;ko&#39;</span><span class="p">,</span> <span class="n">markersize</span><span class="o">=</span><span class="mf">0.5</span><span class="p">)</span>
+        <span class="n">pylab</span><span class="o">.</span><span class="n">ylim</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
+</pre></div>
+</div>
+<p><tt class="docutils literal"><span class="pre">bifurcation_diagram.py</span></tt>:</p>
+<div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">logistic_map</span> <span class="kn">import</span> <span class="n">LogisticMap</span>
+<span class="kn">import</span> <span class="nn">pylab</span>
+
+<span class="n">lmap</span> <span class="o">=</span> <span class="n">LogisticMap</span><span class="p">(</span><span class="mi">1000</span><span class="p">)</span>
+
+<span class="n">pylab</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
+<span class="n">lmap</span><span class="o">.</span><span class="n">plot_bifurcation_diagram</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">500</span><span class="p">,</span> <span class="n">sigma</span><span class="o">=</span><span class="mf">1e-5</span><span class="p">)</span>
+<span class="n">pylab</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s">r&#39;$\sigma=10^{-5}$&#39;</span><span class="p">)</span>
+
+<span class="n">pylab</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="mi">2</span><span class="p">)</span>
+<span class="n">lmap</span><span class="o">.</span><span class="n">plot_bifurcation_diagram</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">500</span><span class="p">,</span> <span class="n">sigma</span><span class="o">=</span><span class="mf">1e-3</span><span class="p">)</span>
+<span class="n">pylab</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s">r&#39;$\sigma=10^{-3}$&#39;</span><span class="p">)</span>
+
+<span class="n">pylab</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span>
+<span class="n">lmap</span><span class="o">.</span><span class="n">plot_bifurcation_diagram</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">500</span><span class="p">,</span> <span class="n">sigma</span><span class="o">=</span><span class="mf">1e-2</span><span class="p">)</span>
+<span class="n">pylab</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s">r&#39;$\sigma=10^{-2}$&#39;</span><span class="p">)</span>
+
+<span class="n">pylab</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
+</pre></div>
+</div>
+</div>
+<div class="section" id="c-code">
+<h2>C code<a class="headerlink" href="#c-code" title="Permalink to this headline">¶</a></h2>
+<p><tt class="docutils literal"><span class="pre">logistic_map.c</span></tt>:</p>
+<div class="highlight-c"><div class="highlight"><pre><span class="cp">#include &lt;gsl/gsl_rng.h&gt;</span>
+<span class="cp">#include &lt;gsl/gsl_randist.h&gt;</span>
+
+<span class="k">typedef</span> <span class="k">struct</span> <span class="n">logisticmap_</span><span class="p">{</span>
+  <span class="kt">int</span> <span class="n">num_i</span><span class="p">;</span>
+  <span class="kt">double</span> <span class="o">*</span><span class="n">xt</span><span class="p">;</span>
+  <span class="kt">double</span> <span class="n">mu</span><span class="p">;</span>
+  <span class="kt">double</span> <span class="n">sigma</span><span class="p">;</span>
+  <span class="n">gsl_rng</span> <span class="o">*</span><span class="n">rng</span><span class="p">;</span>
+<span class="p">}</span> <span class="n">LogisticMap</span><span class="p">;</span>
+
+
+<span class="kt">int</span> <span class="nf">LogisticMap_gene_seq</span><span class="p">(</span><span class="n">LogisticMap</span> <span class="o">*</span><span class="n">self</span><span class="p">)</span>
+<span class="p">{</span>
+  <span class="kt">int</span> <span class="n">i</span><span class="p">;</span>
+  <span class="kt">double</span> <span class="n">eta</span><span class="p">;</span>
+  <span class="k">for</span> <span class="p">(</span><span class="n">i</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span> <span class="n">i</span> <span class="o">&lt;</span> <span class="n">self</span><span class="o">-&gt;</span><span class="n">num_i</span><span class="p">;</span> <span class="o">++</span><span class="n">i</span><span class="p">){</span>
+    <span class="n">eta</span> <span class="o">=</span> <span class="n">gsl_ran_gaussian_ziggurat</span><span class="p">(</span><span class="n">self</span><span class="o">-&gt;</span><span class="n">rng</span><span class="p">,</span> <span class="n">self</span><span class="o">-&gt;</span><span class="n">sigma</span><span class="p">);</span>
+    <span class="n">self</span><span class="o">-&gt;</span><span class="n">xt</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">=</span> <span class="n">self</span><span class="o">-&gt;</span><span class="n">mu</span> <span class="o">*</span> <span class="n">self</span><span class="o">-&gt;</span><span class="n">xt</span><span class="p">[</span><span class="n">i</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span> <span class="o">*</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">self</span><span class="o">-&gt;</span><span class="n">xt</span><span class="p">[</span><span class="n">i</span><span class="o">-</span><span class="mi">1</span><span class="p">])</span> <span class="o">+</span> <span class="n">eta</span><span class="p">;</span>
+    <span class="k">if</span> <span class="p">(</span><span class="n">self</span><span class="o">-&gt;</span><span class="n">xt</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">&lt;</span> <span class="mi">0</span><span class="p">){</span>
+      <span class="n">self</span><span class="o">-&gt;</span><span class="n">xt</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
+    <span class="p">}</span>
+  <span class="p">}</span>
+  <span class="k">return</span> <span class="mi">0</span><span class="p">;</span>
+<span class="p">}</span>
+</pre></div>
+</div>
+</div>
+<div class="section" id="output">
+<h2>Output<a class="headerlink" href="#output" title="Permalink to this headline">¶</a></h2>
+<p>[<a class="reference external" href="../../plot_directive/samples/logistic_map/bifurcation_diagram.py">source code</a>, <a class="reference external" href="../../plot_directive/samples/logistic_map/bifurcation_diagram_00.hires.png">hires.png</a>, <a class="reference external" href="../../plot_directive/samples/logistic_map/bifurcation_diagram_00.pdf">pdf</a>]</p>
+<div class="figure">
+<img alt="../../_images/bifurcation_diagram_003.png" src="../../_images/bifurcation_diagram_003.png" />
+</div>
+<p>[<a class="reference external" href="../../plot_directive/samples/logistic_map/bifurcation_diagram.py">source code</a>, <a class="reference external" href="../../plot_directive/samples/logistic_map/bifurcation_diagram_01.hires.png">hires.png</a>, <a class="reference external" href="../../plot_directive/samples/logistic_map/bifurcation_diagram_01.pdf">pdf</a>]</p>
+<div class="figure">
+<img alt="../../_images/bifurcation_diagram_013.png" src="../../_images/bifurcation_diagram_013.png" />
+</div>
+<p>[<a class="reference external" href="../../plot_directive/samples/logistic_map/bifurcation_diagram.py">source code</a>, <a class="reference external" href="../../plot_directive/samples/logistic_map/bifurcation_diagram_02.hires.png">hires.png</a>, <a class="reference external" href="../../plot_directive/samples/logistic_map/bifurcation_diagram_02.pdf">pdf</a>]</p>
+<div class="figure">
+<img alt="../../_images/bifurcation_diagram_023.png" src="../../_images/bifurcation_diagram_023.png" />
+</div>
+</div>
+</div>
+
+
+          </div>
+        </div>
+      </div>
+      <div class="sphinxsidebar">
+        <div class="sphinxsidebarwrapper">
+  <h3><a href="../../index.html">Table Of Contents</a></h3>
+  <ul>
+<li><a class="reference internal" href="#">Logistic map with noise additive (usage of <tt class="docutils literal"><span class="pre">railgun.cmem()</span></tt>)</a><ul>
+<li><a class="reference internal" href="#python-code">Python code</a></li>
+<li><a class="reference internal" href="#c-code">C code</a></li>
+<li><a class="reference internal" href="#output">Output</a></li>
+</ul>
+</li>
+</ul>
+
+  <h4>Previous topic</h4>
+  <p class="topless"><a href="../lode_rk4/lode_rk4.html"
+                        title="previous chapter">Runge-Kutta method (usage of <tt class="docutils literal"><span class="pre">_cmemsubsets_</span></tt>)</a></p>
+  <h4>Next topic</h4>
+  <p class="topless"><a href="../gslctypes/gslctypes.html"
+                        title="next chapter">Using RailGun with GSL (GNU Scientific Library)</a></p>
+  <h3>This Page</h3>
+  <ul class="this-page-menu">
+    <li><a href="../../_sources/samples/logistic_map/logistic_map.txt"
+           rel="nofollow">Show Source</a></li>
+  </ul>
+<div id="searchbox" style="display: none">
+  <h3>Quick search</h3>
+    <form class="search" action="../../search.html" method="get">
+      <input type="text" name="q" size="18" />
+      <input type="submit" value="Go" />
+      <input type="hidden" name="check_keywords" value="yes" />
+      <input type="hidden" name="area" value="default" />
+    </form>
+    <p class="searchtip" style="font-size: 90%">
+    Enter search terms or a module, class or function name.
+    </p>
+</div>
+<script type="text/javascript">$('#searchbox').show(0);</script>
+        </div>
+      </div>
+      <div class="clearer"></div>
+    </div>
+    <div class="related">
+      <h3>Navigation</h3>
+      <ul>
+        <li class="right" style="margin-right: 10px">
+          <a href="../../genindex.html" title="General Index"
+             >index</a></li>
+        <li class="right" >
+          <a href="../../py-modindex.html" title="Python Module Index"
+             >modules</a> |</li>
+        <li class="right" >
+          <a href="../gslctypes/gslctypes.html" title="Using RailGun with GSL (GNU Scientific Library)"
+             >next</a> |</li>
+        <li class="right" >
+          <a href="../lode_rk4/lode_rk4.html" title="Runge-Kutta method (usage of _cmemsubsets_)"
+             >previous</a> |</li>
+        <li><a href="../../index.html">RailGun v0.1.7 documentation</a> &raquo;</li>
+          <li><a href="../index.html" >Samples</a> &raquo;</li> 
+      </ul>
+    </div>
+    <div class="footer">
+        &copy; Copyright 2010, Takafumi Arakaki.
+      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
+    </div>
+  </body>
+</html>

File railgun-doc/searchindex.js

View file
  • Ignore whitespace
-Search.setIndex({objects:{"":{railgun:[2,0,1],yourcode:[4,0,1]},railgun:{cmems:[2,1,1],SimObject:[6,3,1],relpath:[2,1,1]},"railgun.SimObject":{setv:[6,4,1],num:[6,4,1],getv:[6,4,1]},yourcode:{YourSimObject:[6,3,1]},"yourcode.YourSimObject":{"_cwrap_C_FUNC_NAME":[6,4,1],"_cfuncs_":[6,2,1],"_cmemsubsets_":[6,2,1],"_cmembers_":[6,2,1],"_cstructname_":[6,2,1],"_clibname_":[6,2,1],"_cfuncprefix_":[6,2,1],"_clibdir_":[6,2,1]}},terms:{all:[0,7],code:[0,1,3,4,7,5],name1:6,four:6,scalar:6,follow:[0,6],run_debug:4,cython:0,myprefixfuncnam:6,intermedi:4,program:[0,7],vec:6,liter:[4,6],string:[6,7],c_doubl:6,"void":4,util:[0,2],veri:0,c_int:6,level:0,list:[6,7],prefix:[6,5],vector:[4,6,5],refer:[1,4,3],pleas:[6,5],upper:[5,7],your_modul:2,s_debug:4,zero:7,pass:0,num_i2:6,run:[0,4,5,3,7],num_i1:6,index:[0,6,5,7],what:5,plot_x:4,libkaplan_yorke_map:1,access:[0,4,5,6,7],version:5,method:[6,0,4,3,7],othernameforpyclass:6,christian:1,gener:[0,2,7],here:[0,6,7],satisfi:6,beck:1,let:[0,2],xt_0:1,path:[2,6,7],along:[6,7],legend:4,"_clibdir_":[0,1,2,6,4,5,7],wait:7,search:0,figsiz:1,chang:7,linearordinarydifferentialequ:5,control:6,via:[0,4,5],although:0,func_:[6,7],modul:[0,2,6,7],double_vector:6,kaplanyorkemap:1,instal:0,should:[6,7],x1_debug:4,from:[0,1,2,6,4,5,7],memori:[0,4],doubl:[0,1,2,6,4,5,7],two:[6,7],next:0,liblode_cfuncprefix:5,call:[0,6,7],c_ushort:6,type:[0,2,5,6,7],notic:5,relative_path:2,warn:6,flag:4,name2:6,c_float:6,hold:7,must:[6,7],uint64:6,alia:6,arang:4,can:[6,0,2,4,7],def:[4,6],overrid:6,simobject:[0,1,2,3,4,5,6,7],kym:1,give:4,share:[0,1,6,4,7,5],indic:[0,6,7],kaplanyorkemap_gene_seq:1,sourc:[1,0,2,4,5],lode_rk4:[4,3],want:[0,4,6,7],dxd:[4,5],unsign:6,alwai:[0,7],differenti:[0,3,5],end:[0,6,7],ordinari:[0,3,5],double_matrix:6,write:[0,1,6,4,7,5],how:[0,5,7],sever:[6,7],longlong:6,map:[1,0,3],after:6,befor:0,uint:6,mai:0,multipl:6,data:[0,2,6],stress:0,"short":[0,6],essenti:7,num_:[0,1,6,4,7,5],correspond:6,element:[1,6],int64:6,linearoderk4_:4,order:[6,7],nameofstruct_func_method3:7,nameofstruct_func_method2:7,nameofstruct_func_method1:7,double_scalar:6,c_bool:6,pointer:7,typedef:[1,0,4,5,7],c_longlong:6,chosen:6,platform:6,yt_0:1,calc_xi:4,lode_cstructnam:5,easier:0,myprefix:6,good:0,"return":[0,1,6,4,7,5],python:[0,1,2,3,4,5,6,7],auto:7,var_nam:6,"_cwrap_c_func_nam":6,now:5,introduct:1,choic:[6,7],"schl\u00f6gl":1,name:[1,4,5,6,7],int_matrix:6,easili:[0,2],mode:[4,3],debug:[4,3],side:0,mean:[6,5,7],subset:6,k1_debug:4,our:7,meth:7,special:[2,7],variabl:[0,4,6,7],ulonglong:6,matrix:[4,6,5],ret:7,content:0,rel:[2,6,7],uint32:6,pul:7,linear:[0,4,3,5],free:[1,4],k4_debug:4,base:6,york:[1,0,3],org:0,lmd:1,care:6,yourcod:6,omit:[6,5,7],plot:[1,0,4,5],thing:0,nameofstruct_name_of_funct:7,name_of_shared_librari:6,gene_seq:1,first:7,s_end:[5,7],rang:[4,5,7],pyrex:0,onc:[6,7],arrai:[0,1,6,4,7,5],number:[6,7],sometim:0,fast:0,klist:4,size:[1,4,5,6,7],linearoderk4_run_norm:4,differ:5,x3_debug:4,system:1,wrapper:6,subplot:5,option:[6,7],relationship:[0,6],especi:0,copi:[6,5],setuptool:0,alloc:[0,4],specifi:[6,5,7],liblod:[0,5,7],png:[1,4,5],overwrit:6,keyword:7,provid:0,tree:2,second:7,charact:6,arg_nam:6,pre:[4,6],argument:[0,6,5,7],packag:0,have:[0,2,6,7],tabl:0,need:[0,1,6,4,7,5],self:[0,1,6,4,7,5],simul:[1,0],note:[2,6,7],also:6,without:[5,7],take:7,which:[0,2,6,7],kaplan:[1,0,3],encyclopedia:[1,4],ulong:6,normal:[4,3,5],k3_debug:4,letter:6,pair:0,"class":[0,1,2,6,4,5,7],linearod:[0,5,7],don:[6,7],doe:6,ext:2,declar:[1,4,5,7],axi:7,tkf:0,iterate_onc:4,show:[1,0,4,5],enumer:[4,5],syntax:6,cdt:[0,2,6],line:[6,5],your_clib:2,onli:[0,4],explicitli:6,enough:0,rasi:6,dict:[4,6],local:6,variou:7,get:[2,6,7],"__file__":[0,1,2,4,7,5],run_:4,c_ulong:6,requir:[0,7],bar:6,plot_k:4,stuff:0,rung:[0,4,3],where:[6,7],set:[4,5,6,7],a_0_0:[5,7],"_cmembers_":[0,1,2,6,4,5,7],see:[0,6,7],num:6,arg:[2,6,7],num_in:6,railgun:[0,1,2,6,4,5,7],wikipedia:[1,4],label:4,figur:1,"import":[1,0,4,5,7],attribut:[2,6],cstructnam:6,bound:[5,7],kei:[6,7],kaplanyorkemap_:1,numer:0,style:[0,7],lode:[0,4,5,7],solv:[4,5],come:6,addit:6,last:7,ushort:6,instanc:[4,7],equat:[0,4,3,5],pdf:[1,4,5],load:[0,2,5,6,7],among:[0,6],simpli:5,kwd:6,cmem:[2,6],non:7,creat:[4,6,7],fortran:0,s_start:7,numpi:[0,6],three:5,empti:7,much:0,valu:[4,5,6,7],great:0,func_foo:6,linearode_run:[0,5,7],c_char:6,func:[4,6,7],k2_debug:4,defin:[6,7],"_cstructname_":[6,3,5],abov:[0,7],error:[6,7],func_nam:[6,7],c_ulonglong:6,chaotic:1,nameofstruct:7,scipi:0,"__init__":6,welcom:0,make:7,same:[2,6,7],member:[1,4,5,6,7],your_c_funct:6,tutori:[0,7],document:[0,6],getv:[1,4,6],complet:0,kutta:[0,4,3],http:0,c_uint:6,effect:6,hand:0,rais:7,temporari:7,cdt_or_index:6,inherit:7,setv:[1,6,5,7],exampl:[0,6,7],thi:[0,2,5,6,7],choos:6,everyth:[0,6],dimension:[4,5],name_of_c_funct:6,linearoderk4:4,just:5,less:0,pylab:[1,0,4,5],shape:6,psyco:0,yoursimobject:[4,6],speed:0,languag:[0,6],struct:[0,1,6,4,7,5],easi:[0,7],c_short:6,makefil:2,friedrich:1,add:7,c_func_nam:6,dtype:[0,6],float32:6,build:2,int32:6,longdoubl:6,read:0,know:7,like:[0,2,6,7],specif:7,docutil:[4,6],"_cfuncs_":[0,1,6,4,7,5],int_scalar:6,some_funct:6,output:[1,3,5],func_with_arg:6,page:0,thermodynam:1,some:7,sampl:[0,3],int_vector2:6,int_vector1:6,librari:[0,1,6,4,7,5],var_0_1:6,definit:[1,2,3,7,6],markers:1,leav:7,linearoderk4_run_debug:4,relpath:[0,1,2,6,4,5,7],c_long:6,method2:7,method3:7,method1:7,usag:[0,2,4,3],funcnam:6,repositori:0,"_cmemsubsets_debug":4,src:2,obj:6,func_spam:6,constructor:4,book:1,"float":6,easy_instal:0,automat:[0,6,7],liblode_rk4:4,wrap:6,"_cwrap_your_c_funct":6,your:[6,0,2,4,7],span:[4,6],wai:[0,7],"long":6,avail:6,start:6,low:0,lot:4,"_clibname_":[0,1,2,6,4,5,7],"var":[4,6,5],"function":[0,2,5,6,7],form:7,num_i:[1,6],bitbucket:0,"_cfuncprefix_":[6,3,5],"true":4,notat:[6,7],hire:[1,4,5],consist:[0,7],"default":[4,5,6,7],"_cmemsubsets_":[0,4,3,6],c_longdoubl:6,featur:7,calc_f:4,"int":[0,1,2,6,4,5,7],certain:[0,7],"char":6,file:[2,6,7],pip:0,check:[0,4,7],fill:6,linearode_:[0,5,7],googl:1,when:[0,4,6],other:0,bool:6,you:[6,0,2,4,7],architectur:6,ctype:[0,6],old_c_funct:6,num_j:6,num_k:6,directori:[1,4,5,6,7],num_d:[0,4,5,7],pathnam:2,x2_debug:4,return_var:6},objtypes:{"0":"py:module","1":"py:function","2":"py:attribute","3":"py:class","4":"py:method"},titles:["Welcome to RailGun&#8217;s documentation!","Kaplan-Yorke map","Utility functions","Samples","Runge-Kutta method (usage of <tt class=\"docutils literal docutils literal docutils literal\"><span class=\"pre\">_cmemsubsets_</span></tt>)","Linear Ordinary Differential Equation","<tt class=\"docutils literal\"><span class=\"pre\">SimObject</span></tt> &#8212; A class loads everything you need from C shared library","RailGun Tutorial"],objnames:{"0":"Python module","1":"Python function","2":"Python attribute","3":"Python class","4":"Python method"},filenames:["index","samples/kaplan_yorke_map/kaplan_yorke_map","utils","samples/index","samples/lode_rk4/lode_rk4","samples/lode/lode","simobj","tutorial"]})
+Search.setIndex({objects:{"":{railgun:[2,0,1],yourcode:[5,0,1]},railgun:{cmems:[2,1,1],SimObject:[7,3,1],relpath:[2,1,1]},"railgun.SimObject":{setv:[7,4,1],num:[7,4,1],getv:[7,4,1]},yourcode:{YourSimObject:[7,3,1]},"yourcode.YourSimObject":{"_cwrap_C_FUNC_NAME":[7,4,1],"_cfuncs_":[7,2,1],"_cmemsubsets_":[7,2,1],"_cmembers_":[7,2,1],"_clibdir_":[7,2,1],"_clibname_":[7,2,1],"_cfuncprefix_":[7,2,1],"_cstructname_":[7,2,1]}},terms:{all:[0,8,6],code:[0,1,8,3,4,5,6,9],from_address:8,name1:7,four:7,scalar:7,follow:[0,7,8],run_debug:5,cython:0,typeerror:8,"const":8,"_c_gsl_rng_type":8,myprefixfuncnam:7,intermedi:5,find_librari:8,program:[0,6],vec:7,k2_debug:5,isinst:8,liter:[4,5,7],string:[7,8,6],c_doubl:[7,8],"void":5,util:[0,2,8],veri:0,c_int:[7,8],logistic_map_:[],gsl_rng_type:8,recip:8,ratio_method:8,level:0,list:[7,6],prefix:[7,9],iter:8,"try":8,vector:[5,7,9],relpath:[0,1,2,7,4,5,6,9],pleas:[7,9],upper:[6,9],your_modul:2,s_debug:5,zero:6,pass:0,num_i2:7,method2:6,num_i1:7,index:[0,7,6,9],what:9,defin:[7,8,6],method1:6,plot_x:5,libkaplan_yorke_map:1,access:[6,0,5,7,9],version:9,gsl_strerror:8,method:[0,8,3,5,7,6],gsl_rng_types_setup:8,othernameforpyclass:7,christian:1,"_ctype_":8,gener:[0,2,6],here:[0,7,6],satisfi:7,beck:1,let:[0,2],xt_0:[1,4],path:[2,7,6],along:[7,6],legend:5,"_clibdir_":[0,1,2,7,4,5,6,9],wait:6,search:0,gsl_rng_free:8,figsiz:1,chang:6,gsl_rng_alloc:8,linearordinarydifferentialequ:9,control:7,via:[0,5,9],repositori:0,func_:[7,6],modul:[0,2,7,6],double_vector:7,kaplanyorkemap:1,printf:8,instal:0,rasi:7,plot:[1,0,4,5,9],from:[0,1,2,7,4,5,6,8,9],zip:4,memori:[0,5],doubl:[0,1,2,7,4,5,6,9],two:[7,6],next:0,liblode_cfuncprefix:9,call:[0,7,6],c_ushort:7,type:[0,2,7,9,8,6],"_gsl_rng_type_p_dict":8,liblogistic_map:4,mu_start:4,"_gsl_rng_set":8,notic:9,relative_path:2,warn:7,flag:5,name2:7,c_float:7,sourcecod:8,hold:6,must:[7,6],uint64:7,none:[4,8],alia:7,arang:5,can:[0,2,7,5,8,6],def:[4,5,8,7],overrid:7,simobject:[0,1,2,3,4,5,6,7,9],kym:1,give:[5,8],share:[0,1,7,5,6,9],indic:[0,7,6],kaplanyorkemap_gene_seq:1,sourc:[0,1,2,4,5,9],lode_rk4:[5,3],want:[0,5,7,6],dxd:[5,9],unsign:7,alwai:[0,6],differenti:[0,3,9],end:[0,7,6],ordinari:[0,3,9],double_matrix:7,write:[0,1,7,5,6,9],how:[0,6,9],"__init__":[4,7,8],instead:8,longlong:7,map:[1,0,4,8,3],max:8,after:7,befor:0,uint:7,mai:[4,0],multipl:7,data:[0,2,7],stress:0,"short":[0,7],essenti:6,tutori:[0,6],num_:[0,1,7,5,6,9],correspond:7,element:[1,7],easy_instal:0,encyclopedia:[1,5],linearoderk4_:5,order:[7,6],restyp:8,nameofstruct_func_method3:6,nameofstruct_func_method2:6,nameofstruct_func_method1:6,double_scalar:7,c_bool:7,"_c_gsl_rng_p":8,through:4,old_gene_seq:4,pointer:[8,6],typedef:[0,1,4,5,6,9],c_longlong:7,chosen:7,activest:8,platform:7,yt_0:1,calc_xi:5,requir:[0,6],mu_list:4,xt_list:4,easier:0,myprefix:7,good:0,"return":[0,1,8,7,4,5,6,9],python:[0,1,2,3,4,5,6,7,9],auto:6,var_nam:7,initi:4,number:[7,6],"break":8,gsl_rng_set:8,now:9,introduct:1,choic:[7,6],"schl\u00f6gl":1,name:[1,8,7,5,6,9],int_matrix:7,linspac:4,easili:[0,2],mode:[5,8,3],each:8,debug:[5,3],side:0,mean:[7,6,9],subset:7,mu_num:4,k1_debug:5,our:6,meth:6,special:[2,6],variabl:[0,5,7,6],ulonglong:7,matrix:[5,7,9],mt19937:8,ret:6,content:0,rel:[2,7,6],uint32:7,pul:6,linear:[0,5,3,9],free:[1,5],k4_debug:5,base:7,york:[1,0,3],logisticmap:4,org:0,lmd:1,care:7,wai:[0,6],omit:[7,6,9],thing:0,nameofstruct_name_of_funct:6,rais:[8,6],gene_seq:[1,4],first:[4,6],s_end:[6,9],func_spam:7,rang:[5,6,9],pyrex:0,onc:[7,6],arrai:[0,1,7,5,6,9],"_cwrap_c_func_nam":7,sometim:0,rtld_global:8,fast:0,klist:5,size:[1,5,7,9,6],avail:7,differ:9,"long":7,x3_debug:5,system:1,wrapper:7,store:8,low:0,subplot:9,option:[7,6],relationship:[0,7],especi:0,"__del__":8,copi:[4,7,9],setuptool:0,alloc:[0,5],specifi:[7,6,9],liblod:[0,6,9],logist:[4,0,8,3],png:[1,4,5,9],setattr:8,provid:0,tree:2,second:6,structur:8,charact:7,arg_nam:7,lmap:4,pre:[4,5,7],gslctypes_rng:[4,8],argument:[0,7,6,9],packag:0,seed:[4,8],have:[0,2,7,6],tabl:0,need:[0,1,7,4,5,6,9],ylim:4,"__set":8,equival:8,min:8,"_gsl_rng_alloc":8,self:[0,1,8,7,4,5,6,9],"_gsl_rng_name":8,note:[2,7,6],also:7,exampl:[0,7,6],take:6,which:[0,2,8,7,6],kaplan:[1,0,3],int64:7,ulong:7,normal:[5,3,9],object:8,k3_debug:5,letter:7,pair:0,"class":[0,1,2,7,4,5,6,8,9],linearod:[0,6,9],don:[7,6],"_gslfuncload":8,doe:7,ext:2,declar:[1,5,6,9],axi:6,sigma:[4,8],tkf:0,iterate_onc:5,show:[1,0,4,5,9],wikipedia:[1,5],syntax:7,cdt:[0,2,7],dimension:[5,9],"_cfuncprefix_":[7,3,9],your_clib:2,onli:[0,5],explicitli:7,nois:[4,0,8,3],state:[4,8],should:[7,8,6],dict:[5,8,7],local:7,variou:6,get:[2,8,7,6],logistic_map:4,"__file__":[0,1,2,4,5,6,9],run_:5,c_ulong:[7,8],lode_cstructnam:9,bar:7,keyword:6,shape:7,plot_k:5,stuff:0,rung:[0,5,3],where:[7,6],set:[6,5,8,7,9],cdll:8,a_0_0:[6,9],"_c_gsl_rng":8,"_cmembers_":[0,1,2,7,4,5,6,9],see:[4,0,7,8,6],num:7,arg:[2,7,6],num_in:7,c_longdoubl:7,enumer:[5,9],label:5,enough:0,"import":[0,1,8,4,5,6,9],awai:4,attribut:[2,7],cstructnam:7,c_char_p:8,kei:[7,6],kaplanyorkemap_:1,numer:0,style:[0,6],lode:[0,5,6,9],solv:[5,9],come:7,addit:[4,0,7,8,3],last:[4,6],ushort:7,eta:4,equat:[0,5,3,9],basestr:8,pdf:[1,4,5,9],com:8,argtyp:8,load:[6,0,2,7,9],among:[0,7],simpli:9,kwd:[4,7],figur:[1,4],gsl_rng:[4,8],cmem:[0,2,3,4,7,8],calc_f:5,friedrich:1,s_start:6,numpi:[4,0,7],three:9,empti:6,much:0,valu:[6,5,8,7,9],valueerror:8,"__get_doubl":8,func_foo:7,linearode_run:[0,6,9],c_char:7,func:[5,8,7,6],bifurcation_diagram:4,ziggurat:8,"__get":8,gnu:[4,0,8,3],cast:8,"while":8,float32:7,abov:[0,6],error:[7,6],func_nam:[7,6],c_ulonglong:7,chaotic:1,non:6,scipi:0,"_gsl_ran_gaussian":8,sever:[7,6],welcom:0,make:6,same:[2,7,6],member:[1,5,7,9,6],your_c_funct:7,instanc:[5,6],document:[0,7,8],getv:[1,5,7],complet:0,kutta:[0,5,3],http:[0,8],c_uint:7,effect:7,hand:0,name_of_shared_librari:7,temporari:6,cdt_or_index:7,gslctype:[],c_size_t:8,somev:4,inherit:6,setv:[1,4,7,6,9],without:[6,9],thi:[0,2,4,7,6,8,9],choos:7,nameofstruct:6,everyth:[0,7],gsl:[4,0,8,3],know:6,linearoderk4:5,bellow:8,just:9,less:0,pylab:[1,0,4,5,9],gsl_ran_gaussian:8,"_cdata_":8,psyco:0,yoursimobject:[5,7],"_gsl_rng_type_p":8,speed:0,languag:[0,7],struct:[0,1,7,4,5,6,9],easi:[0,6],c_short:7,makefil:2,except:8,fortran:0,add:6,c_func_nam:7,dtype:[0,7],els:8,"_cstructname_":[7,3,9],build:2,int32:7,"_c_gsl_rng_type_p":8,longdoubl:7,read:0,rng:4,name_of_c_funct:7,python3:8,like:[0,2,7,6],specif:6,gsl_randist:4,docutil:[4,5,7],"_cfuncs_":[0,1,7,4,5,6,9],ran_gaussian:8,int_scalar:7,some_funct:7,output:[1,4,3,9],func_with_arg:7,page:0,mu_stop:4,thermodynam:1,some:6,"_cwrap_gene_seq":4,sampl:[0,3],int_vector2:7,sizeof:8,int_vector1:7,librari:[0,1,8,3,4,5,6,7,9],var_0_1:7,definit:[1,2,3,7,6],markers:[1,4],leav:6,linearoderk4_run_debug:5,refer:[1,5,3],c_long:[7,8],previou:4,run:[6,0,5,3,9],method3:6,x1_debug:5,usag:[0,2,3,4,5,8],funcnam:7,step:4,although:0,dct:8,"_cmemsubsets_debug":5,src:2,gslcbla:8,obj:7,simul:[1,0],constructor:5,other:0,getattr:8,"_gsl_rng_free":8,"float":7,bound:[6,9],automat:[0,7,6],liblode_rk4:5,logisticmap_gene_seq:4,gslctypes_:[],wrap:7,"_cwrap_your_c_funct":7,"_load_1":8,your:[6,0,2,5,7],span:[4,5,7],yourcod:7,overwrit:[4,7],linearoderk4_run_norm:5,start:7,includ:4,lot:5,"_clibname_":[0,1,2,7,4,5,6,9],"var":[5,7,9],"function":[6,0,2,7,9],"_fields_":8,form:6,old_c_funct:7,great:0,num_j:7,line:[7,9],"true":[5,8],"_load":8,notat:[7,6],hire:[1,4,5,9],consist:[0,6],"default":[6,5,7,9],"_cmemsubsets_":[0,5,3,7],railgun:[0,1,2,3,4,5,6,7,8,9],featur:6,creat:[5,7,6],"int":[0,1,2,7,4,5,6,9],certain:[0,6],"char":7,file:[4,2,8,7,6],pip:0,check:[0,5,6],fill:7,linearode_:[0,6,9],"_get_gsl_rng_type_p_dict":8,plot_bifurcation_diagram:4,googl:1,titl:4,when:[0,5,7],book:1,bool:7,you:[0,2,7,4,5,8,6],architectur:7,logisticmap_:4,c_void_p:8,ctype:[0,7,8],gsl_ran_gaussian_ratio_method:8,num_i:[1,4,7],bitbucket:0,num_k:7,scientif:[4,0,8,3],directori:[1,5,7,9,6],num_d:[0,5,6,9],pathnam:2,x2_debug:5,gsl_ran_gaussian_ziggurat:[4,8],return_var:7},objtypes:{"0":"py:module","1":"py:function","2":"py:attribute","3":"py:class","4":"py:method"},titles:["Welcome to RailGun&#8217;s documentation!","Kaplan-Yorke map","Utility functions","Samples","Logistic map with noise additive (usage of <tt class=\"docutils literal\"><span class=\"pre\">railgun.cmem()</span></tt>)","Runge-Kutta method (usage of <tt class=\"docutils literal docutils literal docutils literal\"><span class=\"pre\">_cmemsubsets_</span></tt>)","RailGun Tutorial","<tt class=\"docutils literal\"><span class=\"pre\">SimObject</span></tt> &#8212; A class loads everything you need from C shared library","Using RailGun with GSL (GNU Scientific Library)","Linear Ordinary Differential Equation"],objnames:{"0":"Python module","1":"Python function","2":"Python attribute","3":"Python class","4":"Python method"},filenames:["index","samples/kaplan_yorke_map/kaplan_yorke_map","utils","samples/index","samples/logistic_map/logistic_map","samples/lode_rk4/lode_rk4","tutorial","simobj","samples/gslctypes/gslctypes","samples/lode/lode"]})