chao92 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58a6ee103eef46f27541936fee91371e0a00a133
4
- data.tar.gz: cbfc9bb14b170186828b52d76d8e4eebe90ebfdc
3
+ metadata.gz: 80153d6ded58d2bee9a562dc1293426dbe01b1ab
4
+ data.tar.gz: 4c296d34c2a009563ee77a5d26287d1b7b375459
5
5
  SHA512:
6
- metadata.gz: eef07e036dc8c3f29f93cf57262659c76e13469220635018f61c7adb81474bcad991c3de927420f9efb3fb0c33015c8c6cc9b756d7b57d34caf3931802a6898c
7
- data.tar.gz: 1c9b66036df8a8cffae4585bda17af8fab9587c6791737f6f00759e468bce84580ef6acba8a1f5ed82123ae9c844889ce829d91daf898129d290c64772ec14ec
6
+ metadata.gz: ac6efca079d4c8129987903cc9b12db9ea2414de850c70c14101183d932de40f6f8b6354994a15c947464247f10fee61de90955ae2ae71ec50664a9d7003170f
7
+ data.tar.gz: 729c5c3142b7d57243adb2dbae7b4dbfc3757c20099bc8608944c08cbd0558361a67a51d2582e444b499e42b5f5fef37bbffe8c979f1d7c62a4d2dffc888e509
@@ -1,7 +1,15 @@
1
1
  module Chao92
2
2
 
3
+ # == Estimator
4
+ #
5
+ # Used to estimate the total number of species
6
+ #
7
+ # A minimal usage could be:
8
+ #
9
+ # Chao92::Estimator.run(samples) # => the estimator of the samples
10
+ #
3
11
  class Estimator
4
-
12
+
5
13
  def initialize
6
14
  @samples = []
7
15
  @observed = {}
@@ -19,6 +27,12 @@ module Chao92
19
27
  @N
20
28
  end
21
29
 
30
+ # Show the samples
31
+ #
32
+ def show
33
+ @samples
34
+ end
35
+
22
36
  private
23
37
  def update
24
38
  @observed = @samples.to_hash
@@ -1,3 +1,3 @@
1
1
  module Chao92
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chao92
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eval Air
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2015-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler