Ignore:
Timestamp:
Feb 8, 2009, 8:24:43 PM (13 years ago)
Author:
Danail Vazov
Message:

Added Description.

Location:
trunk/CrypPlugins/FriedmanTest
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/FriedmanTest/FriedmanTest.cs

    r110 r216  
    1414            "Friedman Test",
    1515            "Calculates the probable key lenght of a polyalphabetic substitution cipher.",
    16             "URL",
    17             "FriedmanTest/icon.png")]
     16            "FriedmanTest/DetailedDescription/Description.xaml",
     17            "FriedmanTest/friedman.png")]
    1818    public class FriedmanTest : IStatistic
    1919    {public FriedmanTest()
     
    144144                double normTexLen = texLen * (texLen - 1); //Normalize the text length in order to calculate the observed index of coincidence
    145145                double obIC = summ1/normTexLen; //Calculates the observed index of coincidence
    146                 double Kr = 0.038; //Kappa "random" - expected coincidence rate for a uniform distribution of the alphabet. In this case 1/26, hence we should have a 26 letter alphabet on the input.   
     146                double Kr = 0.019; //Kappa "random" - expected coincidence rate for a uniform distribution of the alphabet. In this case 1/26, hence we should have a 26 letter alphabet on the input.   
    147147                double keyLen = 0.027 * texLen / (((texLen - 1) * obIC) - (Kr * texLen) + Kp);
    148148                stringOutput = Convert.ToString(keyLen);
  • trunk/CrypPlugins/FriedmanTest/FriedmanTest.csproj

    r4 r216  
    5555      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    5656    </Reference>
     57    <Reference Include="UIAutomationProvider">
     58      <RequiredTargetFramework>3.0</RequiredTargetFramework>
     59    </Reference>
    5760    <Reference Include="WindowsBase">
    5861      <RequiredTargetFramework>3.0</RequiredTargetFramework>
     
    7679    <Resource Include="icon.png" />
    7780  </ItemGroup>
     81  <ItemGroup>
     82    <Resource Include="DetailedDescription\Description.xaml">
     83      <SubType>Designer</SubType>
     84      <Generator>MSBuild:Compile</Generator>
     85    </Resource>
     86  </ItemGroup>
     87  <ItemGroup>
     88    <Resource Include="DetailedDescription\Images\friedman1.jpg" />
     89    <Resource Include="DetailedDescription\Images\friedman_sett1.jpg" />
     90    <Resource Include="friedman.png" />
     91  </ItemGroup>
     92  <ItemGroup>
     93    <Resource Include="DetailedDescription\Images\formula1.JPG" />
     94    <Resource Include="DetailedDescription\Images\formula2.JPG" />
     95  </ItemGroup>
    7896  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    7997  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset for help on using the changeset viewer.