tsv-utils v1.2.1 (2018-08-03T20:48:16Z)
Home
Dub
Repo
TsvSampleOptions
tsv_sample
Undocumented in source.
struct
TsvSampleOptions {
string
programName
;
string
[]
files
;
bool
helpVerbose
;
double
sampleRate
;
size_t
sampleSize
;
size_t
weightField
;
size_t
[]
keyFields
;
bool
hasHeader
;
bool
printRandom
;
bool
staticSeed
;
uint
seedValueOptionArg
;
char
delim
;
bool
versionWanted
;
bool
hasWeightField
;
bool
useStreamSampling
;
bool
useDistinctSampling
;
uint
seed
;
auto
processArgs
(string[] cmdArgs);
}
Members
Functions
processArgs
auto
processArgs
(string[] cmdArgs)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
delim
char
delim
;
Undocumented in source.
files
string
[]
files
;
Undocumented in source.
hasHeader
bool
hasHeader
;
Undocumented in source.
hasWeightField
bool
hasWeightField
;
Undocumented in source.
helpVerbose
bool
helpVerbose
;
Undocumented in source.
keyFields
size_t
[]
keyFields
;
Undocumented in source.
printRandom
bool
printRandom
;
Undocumented in source.
programName
string
programName
;
Undocumented in source.
sampleRate
double
sampleRate
;
Undocumented in source.
sampleSize
size_t
sampleSize
;
Undocumented in source.
seed
uint
seed
;
Undocumented in source.
seedValueOptionArg
uint
seedValueOptionArg
;
Undocumented in source.
staticSeed
bool
staticSeed
;
Undocumented in source.
useDistinctSampling
bool
useDistinctSampling
;
Undocumented in source.
useStreamSampling
bool
useStreamSampling
;
Undocumented in source.
versionWanted
bool
versionWanted
;
Undocumented in source.
weightField
size_t
weightField
;
Undocumented in source.
Meta
Source
See Implementation
tsv_sample
functions
distinctSampling
getFieldValue
main
reservoirSampling
streamSampling
testTsvSample
structs
TsvSampleOptions
variables
helpText
helpTextVerbose