streaming

command module
v0.0.0-...-45b5b11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

README

Streaming

An exploration of streaming data processing

Quick Reference

Easiest way to install go (that I've found): brew install go

Run the example from class: go run main.go -class

Run a big example: ggo run main.go -seed 11 -moments 1000 -in data.csv - Ommit the -seed 11 for random results, keep and change the seed value for deterministic behavior

Dependencies

go version go1.19.1 darwin/arm64

Running

go run main.go --help

Arguments

Arguments are presented and described in the help text.

Run go run main.go --help

Example

go run main.go -seed 11 -moments 1000 -in data.csv

Provides an example output of:

Stream cardinality   = 350079
S cardinality        = 55607
True surprise number = 23737517
Estimated surprise   = 77838178

RNG Information

All examples are generated using the golang rand package seeded either with Unix time or a specified seed value. Examples are computed on macOS Monterey 12.6, with arm architecture. Exact outputs may vary depending upon the system's handling of RNG.

Building

go build main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL