File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -142,15 +142,15 @@ public function getAverageInterval(): int
142142 }
143143
144144 // some feeds could have very old historic
145- // articles so eliminate them with statistic
145+ // articles so eliminate them using statistical methods
146146 $ q1 = $ intervals [(int ) floor ($ count * 0.25 )];
147147 $ q3 = $ intervals [(int ) floor ($ count * 0.75 )];
148148 $ iqr = $ q3 - $ q1 ;
149149
150150 $ lower_bound = $ q1 - 1.5 * $ iqr ;
151151 $ upper_bound = $ q3 + 1.5 * $ iqr ;
152152
153- $ result = array_filter ($ intervals , function ($ value ) use ($ lower_bound , $ upper_bound ) {
153+ $ result = array_filter ($ intervals , function (int $ value ) use ($ lower_bound , $ upper_bound ) {
154154 return $ value >= $ lower_bound && $ value <= $ upper_bound ;
155155 });
156156
You can’t perform that action at this time.
0 commit comments