Permalink
Browse files

Fix BernoulliSampler to respect complement

  • Loading branch information...
1 parent 65b0494 commit 7becbcbc609c8a6cb859e45c18cb9d775d631dc9 @holdenk committed Feb 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/scala/org/apache/spark/util/random/RandomSampler.scala
@@ -63,7 +63,7 @@ class BernoulliSampler[T](lb: Double, ub: Double, complement: Boolean = false)
}
}
- override def clone = new BernoulliSampler[T](lb, ub)
+ override def clone = new BernoulliSampler[T](lb, ub, complement)
}
/**

0 comments on commit 7becbcb

Please sign in to comment.