Skip to content

Commit

Permalink
Update version and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarasti committed Apr 13, 2020
1 parent 420c1a7 commit 4408460
Show file tree
Hide file tree
Showing 16 changed files with 1,433 additions and 63 deletions.
63 changes: 39 additions & 24 deletions docs/Statistics.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,26 @@

<ul>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/Bernoulli" data-name="statistics::distributions::bernoulli">
<a href="Statistics/Distributions/Bernoulli.html">Bernoulli</a>

</li>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/Constant" data-name="statistics::distributions::constant">
<a href="Statistics/Distributions/Constant.html">Constant</a>

</li>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/ContinuousDistribution" data-name="statistics::distributions::continuousdistribution">
<a href="Statistics/Distributions/ContinuousDistribution.html">ContinuousDistribution</a>

</li>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/DiscreteDistribution" data-name="statistics::distributions::discretedistribution(t)">
<a href="Statistics/Distributions/DiscreteDistribution.html">DiscreteDistribution</a>

</li>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/Distribution" data-name="statistics::distributions::distribution(t)">
<a href="Statistics/Distributions/Distribution.html">Distribution</a>

Expand Down Expand Up @@ -157,14 +172,14 @@ <h2>
</h2>


<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/lib/distributions.cr#L1" target="_blank">
<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/lib/distributions.cr#L1" target="_blank">
lib/distributions.cr
</a>

<br/>


<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L6" target="_blank">
<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L6" target="_blank">
statistics.cr
</a>

Expand All @@ -186,7 +201,7 @@ <h2>
<dl>

<dt class="entry-const" id="VERSION">
<strong>VERSION</strong> = <code><span class="s">&quot;0.3.0&quot;</span></code>
<strong>VERSION</strong> = <code><span class="s">&quot;1.0.0&quot;</span></code>
</dt>


Expand All @@ -209,7 +224,7 @@ <h2>
<ul class="list-summary">

<li class="entry-summary">
<a href="#bin_count(values:Enumerable,bins:Int32,min=nil,max=nil):Array(::Tuple(Float64,Int32))-instance-method" class="signature"><strong>#bin_count</strong>(values : Enumerable, bins : Int32, min = <span class="n">nil</span>, max = <span class="n">nil</span>) : Array(::Tuple(Float64, Int32))</a>
<a href="#bin_count(values:Enumerable,bins:Int32,min=nil,max=nil,edge:Edge=:left):Bins-instance-method" class="signature"><strong>#bin_count</strong>(values : Enumerable, bins : Int32, min = <span class="n">nil</span>, max = <span class="n">nil</span>, edge : Edge = <span class="n">:left</span>) : Bins</a>

<div class="summary"><p>Counts the number of values in each bin of size <code>(max - min) / bins</code>.</p></div>

Expand Down Expand Up @@ -330,32 +345,32 @@ <h2>
Instance Method Detail
</h2>

<div class="entry-detail" id="bin_count(values:Enumerable,bins:Int32,min=nil,max=nil):Array(::Tuple(Float64,Int32))-instance-method">
<div class="entry-detail" id="bin_count(values:Enumerable,bins:Int32,min=nil,max=nil,edge:Edge=:left):Bins-instance-method">
<div class="signature">

def <strong>bin_count</strong>(values : Enumerable, bins : Int32, min = <span class="n">nil</span>, max = <span class="n">nil</span>) : Array(::Tuple(Float64, Int32))
def <strong>bin_count</strong>(values : Enumerable, bins : Int32, min = <span class="n">nil</span>, max = <span class="n">nil</span>, edge : Edge = <span class="n">:left</span>) : Bins

<a class="method-permalink" href="#bin_count(values:Enumerable,bins:Int32,min=nil,max=nil):Array(::Tuple(Float64,Int32))-instance-method">#</a>
<a class="method-permalink" href="#bin_count(values:Enumerable,bins:Int32,min=nil,max=nil,edge:Edge=:left):Bins-instance-method">#</a>
</div>

<div class="doc">

<p>Counts the number of values in each bin of size <code>(max - min) / bins</code>.</p>

<p>Returns an array of tuples <code>{edge, count}</code> ordered by <code>edge</code>, where <code>edge</code> is the
starting edge of a bin and <code>count</code> is the number of values in the corresponding <code>bin</code>.</p>
<p>Returns a <code>Bins</code> object where <code>edges</code> and <code>counts</code> are ordered by edge.</p>

<p><span class="flag purple">NOTE</span> Any empty bin will also be included.</p>

<p>Parameters</p>

<ul><li>values: a one-dimensional dataset.</li><li>bins: the number of equally-sized bins to divide the datapoints into.</li><li>min: the left end of the first bin's edge. If none is provided, then <code>values.min</code> is used.</li><li>max: the right end of the last bin's edge. If none is provided, then <code>values.max</code> is used.</li></ul>
<ul><li>values: a one-dimensional dataset.</li><li>bins: the number of equally-sized bins to divide the datapoints into.</li><li>min: the left end of the first bin's edge. If none is provided, then <code>values.min</code> is used.</li><li>max: the right end of the last bin's edge. If none is provided, then <code>values.max</code> is used.</li><li>edge: determines whether the left edge of the bin, its mid-point or right edge should be returned.
Choices are <code>:left</code>, <code>:centre</code> and <code>:right</code>. Default is <code>:left</code>.</li></ul>
</div>

<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L57" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L67" target="_blank">View source</a>]

</div>
</div>
Expand All @@ -380,7 +395,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L14" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L14" target="_blank">View source</a>]

</div>
</div>
Expand All @@ -407,7 +422,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L38" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L38" target="_blank">View source</a>]

</div>
</div>
Expand All @@ -434,7 +449,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L84" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L105" target="_blank">View source</a>]

</div>
</div>
Expand All @@ -459,7 +474,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L103" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L124" target="_blank">View source</a>]

</div>
</div>
Expand Down Expand Up @@ -489,7 +504,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L117" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L138" target="_blank">View source</a>]

</div>
</div>
Expand All @@ -510,7 +525,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L142" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L163" target="_blank">View source</a>]

</div>
</div>
Expand Down Expand Up @@ -538,7 +553,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L136" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L157" target="_blank">View source</a>]

</div>
</div>
Expand Down Expand Up @@ -568,7 +583,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L154" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L175" target="_blank">View source</a>]

</div>
</div>
Expand All @@ -594,7 +609,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L165" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L186" target="_blank">View source</a>]

</div>
</div>
Expand Down Expand Up @@ -624,7 +639,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L181" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L202" target="_blank">View source</a>]

</div>
</div>
Expand All @@ -651,7 +666,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L201" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L222" target="_blank">View source</a>]

</div>
</div>
Expand Down Expand Up @@ -679,7 +694,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L219" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L240" target="_blank">View source</a>]

</div>
</div>
Expand Down Expand Up @@ -707,7 +722,7 @@ <h2>
<br/>
<div>

[<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/statistics.cr#L232" target="_blank">View source</a>]
[<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/statistics.cr#L253" target="_blank">View source</a>]

</div>
</div>
Expand Down
17 changes: 16 additions & 1 deletion docs/Statistics/Distributions.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,26 @@

<ul>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/Bernoulli" data-name="statistics::distributions::bernoulli">
<a href="../Statistics/Distributions/Bernoulli.html">Bernoulli</a>

</li>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/Constant" data-name="statistics::distributions::constant">
<a href="../Statistics/Distributions/Constant.html">Constant</a>

</li>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/ContinuousDistribution" data-name="statistics::distributions::continuousdistribution">
<a href="../Statistics/Distributions/ContinuousDistribution.html">ContinuousDistribution</a>

</li>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/DiscreteDistribution" data-name="statistics::distributions::discretedistribution(t)">
<a href="../Statistics/Distributions/DiscreteDistribution.html">DiscreteDistribution</a>

</li>

<li class=" " data-id="github.com/lbarasti/statistics/Statistics/Distributions/Distribution" data-name="statistics::distributions::distribution(t)">
<a href="../Statistics/Distributions/Distribution.html">Distribution</a>

Expand Down Expand Up @@ -130,7 +145,7 @@ <h2>
</h2>


<a href="https://github.com/lbarasti/statistics/blob/24ac181e033bb39fd1f8fb99b4ffb8ec125d9cc4/src/lib/distributions.cr#L2" target="_blank">
<a href="https://github.com/lbarasti/statistics/blob/420c1a706c1cab85e7c2a5f128c125a787149471/src/lib/distributions.cr#L2" target="_blank">
lib/distributions.cr
</a>

Expand Down
Loading

0 comments on commit 4408460

Please sign in to comment.