Team:Davidson-Missouri Western/Scatter Plots, Histograms, Correlation Coefficients
From 2008.igem.org
Krmuscalino (Talk | contribs) |
Krmuscalino (Talk | contribs) |
||
Line 1: | Line 1: | ||
'''Analysis Codes''' | '''Analysis Codes''' | ||
- | [[Media:Corcomp.m|Scatter Plot Generator]] | + | [[Media:Corcomp.m|Scatter Plot and Correlation Coefficient Generator]] |
- | This code generates a scatter plot for each | + | This code generates a scatter plot and correlation coefficient for Function Model. This code is only useful for models that have a single character hash output. The user must input the probability of occurrence of each character in the ascii alphabet (either equal or unequal probabilities), the number of chacters in a group of messages tested, and the number of messages to be generated and plotted. |
- | + | ||
- | [[Media:Ramaster.m|Scatter Plot/Histogram/Correlation | + | [[Media:Ramaster.m|Scatter Plot/Histogram/Correlation Coefficient Generator]] |
This code generates a scatter plot, histogram, and correlation coefficient for each Hash Function Model. These plots are only useful for models that have a single character hash output. The user must input the probability of occurrence of each character in the ascii alphabet (either equal or unequal probabilities), the number of characters in group of messages tested, the number of messages to be generated and plotted, which hash model to use to get outputs to plot, the size of each ring (if applicable), and the minimum amount of layers of rings (if applicable). | This code generates a scatter plot, histogram, and correlation coefficient for each Hash Function Model. These plots are only useful for models that have a single character hash output. The user must input the probability of occurrence of each character in the ascii alphabet (either equal or unequal probabilities), the number of characters in group of messages tested, the number of messages to be generated and plotted, which hash model to use to get outputs to plot, the size of each ring (if applicable), and the minimum amount of layers of rings (if applicable). |
Revision as of 20:35, 29 October 2008
Analysis Codes
Scatter Plot and Correlation Coefficient Generator
This code generates a scatter plot and correlation coefficient for Function Model. This code is only useful for models that have a single character hash output. The user must input the probability of occurrence of each character in the ascii alphabet (either equal or unequal probabilities), the number of chacters in a group of messages tested, and the number of messages to be generated and plotted.
Scatter Plot/Histogram/Correlation Coefficient Generator
This code generates a scatter plot, histogram, and correlation coefficient for each Hash Function Model. These plots are only useful for models that have a single character hash output. The user must input the probability of occurrence of each character in the ascii alphabet (either equal or unequal probabilities), the number of characters in group of messages tested, the number of messages to be generated and plotted, which hash model to use to get outputs to plot, the size of each ring (if applicable), and the minimum amount of layers of rings (if applicable).
Plot Generator for 4 Letter Alphabet
This code generates a scatter plot, histogram, and correlation coefficient for each Hash Function Model (for messages only consisting of a 4 character alphabet).
%to generate scatterplots for indicated hash model with 1 or more hash character in hash output) function[rmg]=randgen(file,L,l,out)%L is the length of the randomly generated messages, l is the number of interations, out is the number of ouputs M= dlmread(file,':');
The Models
This code hashes all messages with the twist model to any fixed amount of characters in the output. The user must input a message in string format, the number of characters in the user's alphabet, the size of each ring, the number of characters desired in the output, and the minimum amount of layers of rings.
Net Model (One Character Output)
This code hashes all messages with the net model to a single character in the output. The user must input a message in string format, the size of the ring, and the minimum amount of layers of rings.
Net Model (Any Amount of Characters in Output)
This code hashes all messages with the net model to any fixed amount of characters in the output. The user must input a message in string format, the number of characters in the user's alphabet, the decimal value (ascii) of the starting character of the alphabet, the size of each ring, the number of characters desired in the output, and the minimum amount of layers of rings.
Split Model for 128 Character Alphabet
This code hashes all messages with the split model to a single character in the output. The user must input a message in string format and a key (one character) in string format.
This code hash all messages with the split model to a single character in the output. The user must input a message in string format, a key (one character) in string format, the number of characters in user's alphabet, and the decimal value (ascii) of the starting character of the alphabet.
This code hashes all messages with the spoke model to any fixed amount of characters in the output. The user must input a message in string format, a key (one character) in string format, the number of characters in the user's alphabet, and the number of characters desired in the output. This code assumes that the decimal value of the starting character of the alphabet is 0.
This code hashes all messages with the spoke model to any fixed amount of characters in the output. The user must input a message ins string format, a key (one character) in string format, the number of characters in the user's alphabet, the decimal value (ascii) of the starting character of the alphabet, and the number of characters desired in the output. This code enables the user to choose the decimal value of the starting character of the alphabet.
Character Frequency Documents
This document is used in above codes as a data base of frequencies of characters (from the ascii alphabet) that occur in typical word documents (not every character in the ascii alphabet will thus not occur at equal frequency).
This document is used in above codes as a data base of frequencies of characters (from the ascii alphabet) occurring equally.