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 +4 -4
- data/lib/chao92/estimator.rb +15 -1
- data/lib/chao92/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 80153d6ded58d2bee9a562dc1293426dbe01b1ab
|
|
4
|
+
data.tar.gz: 4c296d34c2a009563ee77a5d26287d1b7b375459
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac6efca079d4c8129987903cc9b12db9ea2414de850c70c14101183d932de40f6f8b6354994a15c947464247f10fee61de90955ae2ae71ec50664a9d7003170f
|
|
7
|
+
data.tar.gz: 729c5c3142b7d57243adb2dbae7b4dbfc3757c20099bc8608944c08cbd0558361a67a51d2582e444b499e42b5f5fef37bbffe8c979f1d7c62a4d2dffc888e509
|
data/lib/chao92/estimator.rb
CHANGED
|
@@ -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
|
data/lib/chao92/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|