10000 GitHub - wildex/stream-sampling
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wildex/stream-sampling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Console stream sampling tool

Uses Reservoir stream sampling algorithm (see links below)

Can work with 3 different stream types:

  • STDIN input stream
  • Randomly generated stream
  • Stream, aquired from URL

Build Status

Usage

By default application runs in "random generated stream" mode

$ bin/sampling

To run application in other modes, you can use

$ bin/sampling run

And one of options below.

Options

Name Description
--streamType Type of stream, can be one of: RND, STDIN, URLStream
--samplingSize Integer sample size
--url Used only for 'URL streaming' mode

Example for url run

$ bin/sampling run --streamType URL --url https://www.random.org/integers/?num=10&min=1&max=6&col=1&base=10&format=plain&rnd=new

Example for STDIN run. For user interactive run you can type any amount of values and type "exit", when you done. Or just pipe values from another app.

$ bin/sampling run --streamType STDIN

More info on stream sampling:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0