Skip to content

Commit

Permalink
Release 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Dec 10, 2020
1 parent 63974ac commit e055b54
Show file tree
Hide file tree
Showing 25 changed files with 1,248 additions and 787 deletions.
42 changes: 21 additions & 21 deletions docs/bnse.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1 class="title">Module <code>mogptk.bnse</code></h1>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L0-L226" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L0-L226" class="git-link">Browse git</a>
</summary>
<pre><code class="python">import numpy as np
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -271,7 +271,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L191-L192" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L191-L192" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def Spec_Mix(x,y, gamma, theta, sigma=1):
return sigma**2 * np.exp(-gamma*outersum(x,-y)**2)*np.cos(2*np.pi*theta*outersum(x,-y))</code></pre>
Expand All @@ -285,7 +285,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L194-L195" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L194-L195" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def Spec_Mix_sine(x,y, gamma, theta, sigma=1):
return sigma**2 * np.exp(-gamma*outersum(x,-y)**2)*np.sin(2*np.pi*theta*outersum(x,-y))</code></pre>
Expand All @@ -299,7 +299,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L197-L199" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L197-L199" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def Spec_Mix_spectral(x, y, alpha, gamma, theta, sigma=1):
magnitude = np.pi * sigma**2 / (np.sqrt(alpha*(alpha + 2*gamma)))
Expand All @@ -314,7 +314,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L201-L209" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L201-L209" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def freq_covariances(x, y, alpha, gamma, theta, sigma=1, kernel = &#39;sm&#39;):
if kernel == &#39;sm&#39;:
Expand All @@ -335,7 +335,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L186-L189" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L186-L189" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def outersum(a,b):
# equivalent to np.outer(a,np.ones_like(b))+np.outer(np.ones_like(a),b) when a and b are arrays
Expand All @@ -351,7 +351,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L217-L221" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L217-L221" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def time_freq_SM_im(x, y, alpha, gamma, theta, sigma=1):
at = alpha/(np.pi**2)
Expand All @@ -368,7 +368,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L211-L215" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L211-L215" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def time_freq_SM_re(x, y, alpha, gamma, theta, sigma=1):
at = alpha/(np.pi**2)
Expand All @@ -385,7 +385,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L223-L227" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L223-L227" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def time_freq_covariances(x, t, alpha, gamma, theta, sigma, kernel = &#39;sm&#39;):
if kernel == &#39;sm&#39;:
Expand All @@ -408,7 +408,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L6-L183" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L6-L183" class="git-link">Browse git</a>
</summary>
<pre><code class="python">class bse:
def __init__(self, space_input, space_output):
Expand Down Expand Up @@ -599,7 +599,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L79-L95" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L79-L95" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def compute_moments(self):
#posterior moments for time
Expand Down Expand Up @@ -628,7 +628,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L48-L69" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L48-L69" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def dnlogp(self, hypers):
sigma = np.exp(hypers[0])
Expand Down Expand Up @@ -662,7 +662,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L97-L113" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L97-L113" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def get_freq_peaks(self):
x = self.w
Expand Down Expand Up @@ -691,7 +691,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L28-L33" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L28-L33" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def neg_log_likelihood(self):
Y = self.y
Expand All @@ -709,7 +709,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L36-L46" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L36-L46" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def nlogp(self, hypers):
sigma = np.exp(hypers[0])
Expand All @@ -732,7 +732,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L132-L154" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L132-L154" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def plot_freq_posterior(self):
#posterior moments for frequency
Expand Down Expand Up @@ -767,7 +767,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L156-L176" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L156-L176" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def plot_power_spectral_density(self, how_many, flag=None):
#posterior moments for frequency
Expand Down Expand Up @@ -800,7 +800,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L115-L130" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L115-L130" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def plot_time_posterior(self, flag=None):
#posterior moments for time
Expand Down Expand Up @@ -828,7 +828,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L182-L183" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L182-L183" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def set_freqspace(self, max_freq, dimension=500):
self.w = np.linspace(0, max_freq, dimension)</code></pre>
Expand All @@ -842,7 +842,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L178-L180" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L178-L180" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def set_labels(self, time_label, signal_label):
self.time_label = time_label
Expand All @@ -857,7 +857,7 @@ <h3>Methods</h3>
<details class="source">
<summary>
<span>Expand source code</span>
<a href="https://github.com/GAMES-UChile/mogptk/blob/dce23b4e914ff0d8d8ecd30172d5fe5de1dcc211/mogptk/bnse.py#L71-L77" class="git-link">Browse git</a>
<a href="https://github.com/GAMES-UChile/mogptk/blob/63974ac1229f68635c964756795ce6d2c1fd0446/mogptk/bnse.py#L71-L77" class="git-link">Browse git</a>
</summary>
<pre><code class="python">def train(self):
hypers0 = np.array([np.log(self.sigma), np.log(self.gamma), np.log(self.theta), np.log(self.sigma_n)])
Expand Down
Loading

0 comments on commit e055b54

Please sign in to comment.