Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "<table border='1' cellspacing='1' cellpadding='1'>";
- echo "<tr>";
- echo "<th>Term/Kata</th>";
- $no = 1;
- for($s=0; $s < $count_rdokumen; $s++){ echo "<th>D".$no++."</th>"; }
- echo "</tr>";
- for ($k=0; $k < $count_kk; $k++) {
- $name = $split_kk[$k];
- echo "<tr>";
- echo "<td width='20%'>".$name."</td>";
- for ($j=0; $j < $count_rdokumen; $j++) {
- $doc = str_replace(', ', ' ', isset($split_rdokumen[$j]) ? $split_rdokumen[$j] : "");
- $hits = substr_count($doc, $name);
- $tfidf = $tampung_idf[$k]*$hits;
- echo "<td width='10%'>".$tfidf."</td>";
- }
- echo "</tr>";
- }
- echo "<tr>";
- echo "<td align='right'><b>Bobot(W) :</b></td>";
- $no = 1;
- for($s=0; $s < $count_rdokumen; $s++){ echo "<td> </td>"; }
- echo "</tr>";
- echo "</table>";
Advertisement
Add Comment
Please, Sign In to add comment