Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix BernoulliSampler to respect complement
  • Loading branch information
holdenk committed Apr 9, 2014
commit 08f8e4d930e1d9f68f06783dd87f9076bb6fb1a7
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add return type.

}

/**
Expand Down