{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/breml/sample","name":"github.com/breml/sample","description":"Package sample implements sampling algorithms for 1 in n sampling for a random value (probe): * Modulo, using modulo-operation * PowerOf2, using bitwise AND-operation, only usable if the sampling rate is a power of 2 * LowerThan, checking if the probe is lower than a pre calculated boundary (maximum value for probe divided by sampling rate) * Reciprocal, using a multiplication by the reciprocal value of the sampling rate (Details: https://breml.github.io/blog/2015/10/22/dividable-without-remainder/) * Decrement, implementation variant, where the random value is only calculated after a successful sampling","version":"v0.0.0-20151126163855-c42269b4445f","softwareVersion":"v0.0.0-20151126163855-c42269b4445f","license":"https://spdx.org/licenses/MIT","codeRepository":"https://github.com/breml/sample","issueTracker":"https://github.com/breml/sample/issues","url":"https://github.com/breml/sample","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2015-11-26","dateModified":"2015-11-26","datePublished":"2015-11-26","copyrightYear":2015,"downloadUrl":"https://proxy.golang.org/github.com/breml/sample/@v/v0.0.0-20151126163855-c42269b4445f.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/breml/sample#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/breml/sample"]}