Changeset 31 for trunk/tool/metro.php
- Timestamp:
- 04/23/07 11:37:38 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/tool/metro.php
r30 r31 56 56 rsort($tab_in,SORT_NUMERIC); 57 57 rsort($tab_out,SORT_NUMERIC); 58 $lgin = count($tab_in); 58 foreach ( $tab_in as $key => $value ) { 59 if ($value != "nan") {$lgin++;} 60 } 59 61 $percin = $lgin-intval(($lgin*95/100)); 60 $lgout = count($tab_out); 62 foreach ( $tab_out as $key2 => $value2 ) { 63 if ($value2 != "nan") {$lgout++;} 64 } 61 65 $percout = $lgout-intval(($lgout*95/100)); 62 $dr1 = max($tab_in[$percin ],$tab_out[$percout]);66 $dr1 = max($tab_in[$percin-1],$tab_out[$percout-1]); 63 67 $debit = number_format($dr1*$sampling); 64 68 `rm $tmp_file`;