public class SAKStats
extends java.lang.Object
Invocation:
PROMPT>java SAKStats file letters [-olps|-mlps|-mlpk|-ow] [-wfk|-wfks|-spc|-sps] where file = word-freq dictionary file letters = letter-key assignment (e.g., abcdefg-hijklmn-opqrstu-vwxyz) -olps = one-letter-per-scan method -mlps = multiple-letter-per-scan method -mlpk = multiple-letter-per-key method -ow = optimized-word method -wfk = output word-freq-keycode data -wfks = output word-freq-keycode-scan data -spc = output scans per character stat -sps = output selections per scan statNote: "mlps", above, means multiple letter selections during a single scan through the letter-selection region. "mlpk" means multiple letter selections during a single scan step interval where multiple desired letters are on the same key.
Here are some sample runs:
PROMPT>java SAKStats d1phrases2-wordfreq.txt abcdefgh-ijklmnop-qrstuvwxyz -ow -spc abcdefgh-ijklmnop-qrstuvwxyz ow 1.7131456157916434 PROMPT>java SAKStats d1phrases2.txt abcdefgh-ijklmnop-qrstuvwxyz -ow -sps abcdefgh-ijklmnop-qrstuvwxyz ow 0.603138251036028Here are a few runs generating word-freq-keycode-scan data:
PROMPT>java SAKStats d1phrases2-wordfreq.txt abcdefghijklm-nopqrstuvwxyz -wfks -ow > onekey-k2ks-scans.txt PROMPT>java SAKStats d1phrases2-wordfreq.txt abcdefgh-ijklmnop-qrstuvwxyz -wfks -ow > onekey-k3ks-scans.txt PROMPT>java SAKStats d1phrases2-wordfreq.txt abcdefgh-ijklm-nopqr-stuvwxyz -wfks -ow > onekey-k4ks-scans.txt PROMPT>java SAKStats d1phrases2-wordfreq.txt abcdefgh-ijklm-nopqr-stu-vwxyz -wfks -ow > onekey-k5ks-scans.txt PROMPT>java SAKStats d1phrases2-wordfreq.txt abcdefgh-ijkl-mno-pqr-stu-vwxyz -wfks -ow > onekey-k6ks-scans.txtTo view the OW output files, click below.
Constructor and Description |
---|
SAKStats() |
Modifier and Type | Method and Description |
---|---|
static EncodedWord[] |
buildEncodedWordArray(java.lang.String fileArg,
java.lang.String[] keyboardArg) |
static java.lang.String |
getKeystrokes(java.lang.String wordArg,
int[] letterPositionArg) |
static int[] |
getLetterPosition(EncodedWord[] ewArg) |
static int |
getMLPKOpportunities(java.lang.String wordArg,
EncodedWord[] ewArg) |
static int |
getOWOpportunities(java.lang.String wordArg,
EncodedWord[] ewArg) |
static java.lang.String |
getScanSequence(int modeArg,
java.lang.String wordArg,
EncodedWord[] ewArg) |
static int |
getSelectionCount(int modeArg,
java.lang.String wordArg,
java.lang.String keystrokesArg,
EncodedWord[] ewArg) |
static void |
main(java.lang.String[] args) |
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public static java.lang.String getScanSequence(int modeArg, java.lang.String wordArg, EncodedWord[] ewArg)
public static int getSelectionCount(int modeArg, java.lang.String wordArg, java.lang.String keystrokesArg, EncodedWord[] ewArg)
public static java.lang.String getKeystrokes(java.lang.String wordArg, int[] letterPositionArg)
public static int[] getLetterPosition(EncodedWord[] ewArg)
public static EncodedWord[] buildEncodedWordArray(java.lang.String fileArg, java.lang.String[] keyboardArg) throws java.io.IOException
java.io.IOException
public static int getMLPKOpportunities(java.lang.String wordArg, EncodedWord[] ewArg)
public static int getOWOpportunities(java.lang.String wordArg, EncodedWord[] ewArg)