Skip to content

Commit

Permalink
correct size of list of reference objects for MI index
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangiangreco committed Oct 3, 2017
1 parent 8034802 commit 0a1b91a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MIIndexGeneratorFactory extends IndexGeneratorFactory {
val nrefs = if (properties.contains("nrefs")) {
properties.get("nrefs").get.toInt
} else if (properties.contains("n")) {
math.max(200, math.ceil(2 * math.sqrt(properties.get("n").get.toInt)).toInt)
math.min(200, math.ceil(2 * math.sqrt(properties.get("n").get.toInt)).toInt)
} else {
200 //value based on Amato et al. (2008)
}
Expand Down

0 comments on commit 0a1b91a

Please sign in to comment.