PHP code example of afrizalmy / certainty_factor

1. Go to this page and download the library: Download afrizalmy/certainty_factor library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

afrizalmy / certainty_factor example snippets


        $arr = [];
        $arr[0]['kode_case'] = "P01";
        $arr[0]['nama_case'] = "Anemia Aplastik";
        $arr[0]['kode_rule'] = "G01";
        $arr[0]['nama_rule'] = "Terasa lemas diseluruh tubuh";
        $arr[0]['nilai_mb'] = 0.8;
        $arr[0]['nilai_md'] = 0.2;

        $arr[1]['kode_case'] = "P01";
        $arr[1]['nama_case'] = "Anemia Aplastik";
        $arr[1]['kode_rule'] = "G02";
        $arr[1]['nama_rule'] = "Merasakan sakit kepala";
        $arr[1]['nilai_mb'] = 0.8;
        $arr[1]['nilai_md'] = 0.1;
        
$arr
$arr

        $arr = [];
        $arr[0]['kode_rule'] = "G01";
        $arr[0]['persentase_user'] = 0.8;

        $arr[1]['kode_rule'] = "G02";
        $arr[1]['persentase_user'] = 0.5;
        
$arr
$arr
persentase_user