-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd63acf
commit 8e70cf4
Showing
1 changed file
with
8 additions
and
2 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,11 @@ | |||
Reads each line from stdin, where each line is of one or two formats: | Reads each line from stdin, where each line is of one or two formats: | ||
1. <ignore> <value> | 1. <to-be-ignored> <value> | ||
2. <value> <freq> | 2. <value> <freq> | ||
|
|
||
This script outputs the distributions and various statistics of a group of such lines, on stdout as a comma separated set of lines. it has been tested to work on hundreds of millions of lines (which at the time of this writing take a few minutes on my computer). | This script outputs the distributions and various statistics of a group of such lines, on stdout as a comma separated set of lines. it has been tested to work on hundreds of millions of lines (which at the time of this writing take a few minutes on my laptop). | ||
|
|||
Example invocation: | |||
|
|||
#input.txt: a file containing values of type 1 above where the first column is ignored. We use the '-v' | |||
#option for that format. Also, if you want the separator to be tab, on shell type Ctrl-v followed by <tab> key. | |||
distribution.rb -v -t' ' -p percentiles.txt < out_edges.txt |