public class StatTest01 extends Task
Usage: java pj2 StatTest01 [-v] dfreq Nlen Plen trials reps seed
The program performs reps repetitions in parallel. For each repetition, the program picks a random key and a random plaintext of length Plen using the digram frequencies in the dfreq file. The program does trials trials. For each trial, the program picks a random nonce of length Nlen; computes the ciphertext from the key, nonce, and plaintext; and tests whether the ciphertext letters and digrams for each position obey a uniform distribution. However, if 36Nlen < T, the program tests all possible nonces.
The program prints the log Bayes factor of the odds ratio uniformity tests, aggregated across the repetitions, for each ciphertext letter position and each ciphertext digram position. If the -v flag is specified, the program also prints the log Bayes factors for each repetition 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 |
---|
StatTest01() |
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.