source: trunk/CrypPlugins/CostFunction/DetailedDescription/Description.xaml @ 1983

Last change on this file since 1983 was 1983, checked in by malischewski, 11 years ago

deleted "usage with transposition analyser" part

File size: 8.1 KB
Line 
1<FlowDocument
2   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3   xmlns:misc="clr-namespace:Cryptool.PluginBase.Miscellaneous;assembly=CrypPluginBase"
4   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5   AllowDrop="True"
6   Background="White"
7   NumberSubstitution.CultureSource="User"
8   PagePadding="5,0,5,0"
9   ScrollViewer.HorizontalScrollBarVisibility="Auto"
10   ScrollViewer.VerticalScrollBarVisibility="Auto">
11    <Paragraph
12      Margin="0,0,0,0"
13      FontFamily="Times New Roman"
14      FontSize="16"
15      TextAlignment="Left">
16        <Span
17         FontFamily="Georgia"
18         FontSize="18.666"
19         FontWeight="Bold"
20         Foreground="#FF15428B"
21         xml:lang="en-us">
22            <Span.TextDecorations>
23                <TextDecoration Location="Underline"/>
24            </Span.TextDecorations>
25            Costfunction
26
27        </Span>
28    </Paragraph>
29    <Paragraph
30      Margin="0,0,0,0"
31      FontFamily="Times New Roman"
32      FontSize="16"
33      TextAlignment="Left">
34        <Span
35         FontFamily="Georgia"
36         FontSize="17"
37         FontWeight="Bold"
38         Foreground="#FF15428B"
39         xml:lang="en-us">
40            <Span.TextDecorations>
41                <TextDecoration Location="Underline"/>
42            </Span.TextDecorations>
43            Introduction
44
45        </Span>
46    </Paragraph>
47    <Paragraph TextAlignment="Justify">
48        <Run FontSize="16" xml:lang="en-us">
49            This plugin provides costfunction functionality which can be used by different Analyser Plugins (For example: Keysearcher, Transposition Analyser)
50
51        </Run>
52    </Paragraph>
53    <Paragraph TextAlignment="Justify">
54        <Run>
55            The plugin accepts a text as input (which can also be data, e.g. bytes) and its output is a numerical score (double).
56
57        </Run>
58    </Paragraph>
59    <Paragraph TextAlignment="Justify">
60        <Run>
61            Several costfunctions are available:
62
63        </Run>
64    </Paragraph>
65    <Paragraph
66      Margin="0,0,0,0"
67      FontFamily="Times New Roman"
68      FontSize="16"
69      TextAlignment="Left">
70        <Span
71         FontFamily="Georgia"
72         FontSize="18.666"
73         FontWeight="Bold"
74         Foreground="#FF15428B"
75         xml:lang="en-us">
76            <Span.TextDecorations>
77                <TextDecoration Location="Underline"/>
78            </Span.TextDecorations>
79            1. Index of Coincidence
80
81        </Span>
82    </Paragraph>
83    <Paragraph TextAlignment="Justify">
84        <Run>
85            The plugin calculates the Index of Coincidence of a given text.
86
87        </Run>
88    </Paragraph>
89    <Paragraph
90      Margin="0,0,0,0"
91      FontFamily="Times New Roman"
92      FontSize="16"
93      TextAlignment="Left">
94        <Span
95         FontFamily="Georgia"
96         FontSize="17"
97         FontWeight="Bold"
98         Foreground="#FF15428B"
99         xml:lang="en-us">
100            <Span.TextDecorations>
101                <TextDecoration Location="Underline"/>
102            </Span.TextDecorations>
103            2. Entropy
104
105        </Span>
106    </Paragraph>
107    <Paragraph TextAlignment="Justify">
108        <Run>
109            Select &quot;Entropy&quot; in the Settings-Panel to let the plugin calculate the Entropy of a text.
110
111        </Run>
112    </Paragraph>
113    <Paragraph
114      Margin="0,0,0,0"
115      FontFamily="Times New Roman"
116      FontSize="16"
117      TextAlignment="Left">
118        <Span
119         FontFamily="Georgia"
120         FontSize="17"
121         FontWeight="Bold"
122         Foreground="#FF15428B"
123         xml:lang="en-us">
124            <Span.TextDecorations>
125                <TextDecoration Location="Underline"/>
126            </Span.TextDecorations>
127            3. Bigrams: log 2
128
129        </Span>
130    </Paragraph>
131    <Paragraph TextAlignment="Justify">
132        <Run>
133            The Plugin first generates a reference statistic using the selected language corpus (German or English). A custom language corpus for further fine tuning or language support (Spanish, Dutch, etc) can be used, too.
134           For each new input of the plugin this reference statistic will be compared with the bigrams of the input. This is done summing up the reference scores for given bigrams (e.g. initial value is 0, for each occurence of a Bigram the reference score is added).
135           The log 2 setting is used as follows: The plugin calculates the base 2 logarithm of the score (sum of all occurences of a bigram).
136
137        </Run>
138    </Paragraph>
139    <Paragraph
140      Margin="0,0,0,0"
141      FontFamily="Times New Roman"
142      FontSize="16"
143      TextAlignment="Left">
144        <Span
145         FontFamily="Georgia"
146         FontSize="17"
147         FontWeight="Bold"
148         Foreground="#FF15428B"
149         xml:lang="en-us">
150            <Span.TextDecorations>
151                <TextDecoration Location="Underline"/>
152            </Span.TextDecorations>
153            4. Bigrams: Sinkov
154
155        </Span>
156    </Paragraph>
157    <Paragraph TextAlignment="Justify">
158        <Run>
159            The Sinkov setting does the following: The base e logarithm of the percentaged score will be calculated. For percentaged score see next section.
160
161        </Run>
162    </Paragraph>
163    <Paragraph
164      Margin="0,0,0,0"
165      FontFamily="Times New Roman"
166      FontSize="16"
167      TextAlignment="Left">
168        <Span
169         FontFamily="Georgia"
170         FontSize="17"
171         FontWeight="Bold"
172         Foreground="#FF15428B"
173         xml:lang="en-us">
174            <Span.TextDecorations>
175                <TextDecoration Location="Underline"/>
176            </Span.TextDecorations>
177            5. Bigrams: Percentaged
178
179        </Span>
180    </Paragraph>
181    <Paragraph TextAlignment="Justify">
182        <Run>
183            This setting is the number of occurences of a bigram divided by the sum of all number of occurences of a bigram.
184
185        </Run>
186    </Paragraph>
187    <Paragraph
188      Margin="0,0,0,0"
189      FontFamily="Times New Roman"
190      FontSize="16"
191      TextAlignment="Left">
192        <Span
193         FontFamily="Georgia"
194         FontSize="17"
195         FontWeight="Bold"
196         Foreground="#FF15428B"
197         xml:lang="en-us">
198            <Span.TextDecorations>
199                <TextDecoration Location="Underline"/>
200            </Span.TextDecorations>
201            6. Regular Expression
202
203        </Span>
204    </Paragraph>
205    <Paragraph TextAlignment="Justify">
206        <Run>
207            Select &quot;Regular Expression&quot; if you want to evaluate whether an input text matches a chosen Regular Expression. The plugin's output is 1.0 for a match and -1.0 if the input does not match the regular expression.
208
209        </Run>
210    </Paragraph>
211    <Paragraph
212      Margin="0,0,0,0"
213      FontFamily="Times New Roman"
214      FontSize="16"
215      TextAlignment="Left">
216        <Span
217         FontFamily="Georgia"
218         FontSize="17"
219         FontWeight="Bold"
220         Foreground="#FF15428B"
221         xml:lang="en-us">
222            <Span.TextDecorations>
223                <TextDecoration Location="Underline"/>
224            </Span.TextDecorations>
225            7. Weighted Bigrams/Trigrams
226
227        </Span>
228    </Paragraph>
229    <Paragraph TextAlignment="Justify">
230        <Run>
231            This setting is similar to the bigram settings as it combines bigram/trigram scores and weighs these scores using a fitness weight table.
232           A fitness weight table's entry might look like this:
233           
234           &quot;YYY;-5.0&quot;
235           
236           This means a sequence of &quot;YYY&quot; is unlikely to occur in a plaintext, so a negative weight is assigned to this Trigram (-5.0 here).
237           Two tables are available, but it is also possible to use a custom table in *.csv format. Custom tables need to be formatted as follows:
238           The Bigram or Trigram followed by a &quot;;&quot;, followed the weight as a (signed, if negative) double. Each Bigram/Trigram which shall be weighted, needs its on line.
239           For further reference on the format see: Tables in Data Directory.
240
241        </Run>
242    </Paragraph>
243   
244</FlowDocument>
Note: See TracBrowser for help on using the repository browser.