run.directed.sampling {valection} | R Documentation |
Run the directed sampling algorithm
Description
Runs the directed sampling algorithm from the valection library.
Usage
run.directed.sampling(budget, infile, outfile, seed);
Arguments
budget |
An integer specifying the number of candidates to select. |
infile |
Path to input file. It should be formatted with a tab separating the caller and call on each line. caller1 name a call this caller made caller2 name a call this caller made |
outfile |
Path to a filename where the calls should be outputted. |
seed |
An integer specifying the random seed value. Optional. |
Details
Sampling calls where a) an equal number of calls is selected from each caller and b) the likelihood of a call getting selected is proportional to the number of callers that made it.
Author(s)
Chris Cooper
Examples
## Not run:
run.directed.sampling(
budget = 5,
infile = system.file("extdata/infile_example.tsv", package = "valection"),
outfile = "outfile_directedSampling.txt"
);
## End(Not run)
[Package valection version 1.0.0 Index]