public class StatTest02 extends Task
Usage: java pj2 StatTest02 [-v] dfreq Nlen Plen trials reps seed
The program performs reps repetitions in parallel. For each repetition, the program picks a random key. The program does trials trials. For each trial, the program picks a random plaintext of length Plen using the digram frequencies in the dfreq file; picks a random nonce of length Nlen; computes the ciphertext from the key, nonce, and plaintext; and tests whether the ciphertext letters and digrams obey a uniform distribution.
For each repetition, the program prints the log Bayes factor of the odds ratio uniformity tests, aggregated across the trials, for the ciphertext letters and digrams. If the -v flag is specified, the program also prints the log Bayes factors for each trial individually.
ALL_CORES, ALL_GPUS, ANY_NODE_NAME, DEFAULT_CHUNK, DEFAULT_CORES, DEFAULT_GPUS, DEFAULT_NODE_NAME, DEFAULT_SCHEDULE, DEFAULT_THREADS, dynamic, fixed, guided, leapfrog, proportional, STANDARD_CHUNK, THREADS_EQUALS_CORES
Constructor and Description |
---|
StatTest02() |
Modifier and Type | Method and Description |
---|---|
void |
main(String[] args)
Main program.
|
actualThreads, addTupleListener, chunk, chunk, cores, cores, coresRequired, getMatchingTuple, gpus, gpus, gpusRequired, groupSize, initialChunk, initialSchedule, initialThreads, matchingTupleCount, nodeName, nodeName, nodeNameRequired, parallelDo, parallelDo, parallelFor, parallelFor, parallelFor, putTuple, putTuple, readTuple, schedule, schedule, takeTuple, taskRank, terminate, threads, threads, tryToReadTuple, tryToTakeTuple, workerFor
Copyright © 2017 by Alan Kaminsky. All rights reserved. Send comments to ark@cs.rit.edu.