Index of Coincidence | +----------------------------------------------------------------------+ | | | | (c) 2002 by M.Abdullah Khaidar (khaidarmak@yahoo.com) | | | | This program is free software. You can redistribute it and/or modify | | it under the terms of the GNU General Public License as published by | | the Free Software Foundation; either version 2 of the License. | | | +----------------------------------------------------------------------+ ************************************************************************/ include "main.php"; $TITLE="Index of Coincidence"; $HEADTITLE="Index of Coincidence"; top(); echo "
\n"; echo "Enter text you want to calculate:
\n"; echo "

\n"; echo "Key Length:"; echo "\n"; echo "

"; echo "  \n"; echo "
\n"; if ($process=="Calculate"){ $plain=filter($plain); $plain=check_length($plain); for($i=0;$i<26;$i++){ for($j=1;$j<=$keylength;$j++){ $freq[$i][$j]=0; } } for($i=0;$i"; for($m=1;$m<=count($ioc);$m++){ echo number_format($ioc[$m],3)."
"; } } bottom(); ?>