miga-base 0.2.1.3 → 0.2.1.4

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: 1e699399cc5b35cf984eb08b96a8c2b40ad67342
4
- data.tar.gz: 8a2e41748f576d54d35dfc7faf56d0096ed8da67
3
+ metadata.gz: 1dd8e19d8780562edc9d8bf94bb84e5f60487e54
4
+ data.tar.gz: dd86f3de40811fb2862adef1ef5eddb128a9d4d0
5
5
  SHA512:
6
- metadata.gz: 885a3a93e25bfb7971acbb084a9a6140790076f5f8255300daf31ad4007bc8d1495282d8f6972ff3e473879cbdb20af55b3e076d455076060b922db696f2520b
7
- data.tar.gz: 92f6cf6d5ecf3f24afa21964d3b7216e6f6250fc877b2058f46e32dd48d66b141edb3fb1234386c6c1ae51377d09c57a1ead62ea21fc2d55f8fdbd390ce00fcf
6
+ metadata.gz: f93f2e32564193007777e83fb26583a96081eb607881167ba179ba25187ed4ee466897a188d5a81157d6287bcfff73d0690cb834842ebae182533049cc3d89f3
7
+ data.tar.gz: a4fcfb6ef19264145afedf204ff9b412db4f9d32549a060d4dc8fab21eca6a0e2c13f8646307c8fff56ef902404246a226668a3045f128c2a494edfd57e46d36
@@ -10,7 +10,7 @@ module MiGA
10
10
  # - Float representing the major.minor version.
11
11
  # - Integer representing gem releases of the current version.
12
12
  # - Integer representing minor changes that require new version number.
13
- VERSION = [0.2, 1, 3]
13
+ VERSION = [0.2, 1, 4]
14
14
 
15
15
  ##
16
16
  # Nickname for the current major.minor version.
@@ -94,17 +94,15 @@ plot.miga.taxdist <- function(file, exclude=c()){
94
94
  miga.taxprob.novel <- function(max.aai, rank, data){
95
95
  o <- c()
96
96
  for(i in max.aai){
97
- a <- sum(data$rank >= rank & data$aai <= i)/sum(data$aai <= i)
98
- o <- c(o, a)
97
+ o <- c(o, sum(data$rank >= rank & data$aai <= i))
99
98
  }
100
- return(o*sum(data$rank < 12)/sum(data$rank >= rank))
99
+ return(o/sum(data$rank >= rank))
101
100
  }
102
101
 
103
102
  miga.taxprob.intax <- function(max.aai, rank, data){
104
103
  o <- c()
105
104
  for(i in max.aai){
106
- a <- sum(data$rank < rank & data$aai >= i)/sum(data$aai >= i)
107
- o <- c(o, a)
105
+ o <- c(o, sum(data$rank < rank & data$aai >= i)/sum(data$aai >= i))
108
106
  }
109
- return(o*sum(data$rank < 12)/sum(data$rank < rank))
107
+ return(o)
110
108
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miga-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1.3
4
+ version: 0.2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis M. Rodriguez-R