-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from lightstep/jmacd/godocex
Clean up the godoc
- Loading branch information
Showing
7 changed files
with
62 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2019, LightStep Inc. | ||
|
||
/* | ||
Package varopt is an implementation of VarOpt, an unbiased weighted | ||
sampling algorithm described in the paper "Stream sampling for | ||
variance-optimal estimation of subset sums" | ||
https://arxiv.org/pdf/0803.0473.pdf (2008), by Edith Cohen, Nick | ||
Duffield, Haim Kaplan, Carsten Lund, and Mikkel Thorup. | ||
VarOpt is a reservoir-type sampler that maintains a fixed-size sample | ||
and provides a mechanism for merging unequal-weight samples. | ||
This package also includes a simple reservoir sampling algorithm, | ||
often useful in conjunction with weighed reservoir sampling, using | ||
Algorithm R from "Random sampling with a | ||
reservoir", https://en.wikipedia.org/wiki/Reservoir_sampling#Algorithm_R | ||
(1985), by Jeffrey Vitter. | ||
See https://github.com/lightstep/varopt/blob/master/README.md for | ||
more detail. | ||
*/ | ||
package varopt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters