public function getSortedInterval($nbIntv, ListIntervalFormula $lif) { $il = new ListInterval(); $this->sortBy($lif); for ($i = 0; $i < $nbIntv; $i++) { if ($i < count($listInterval)) { $il->add($this->listInterval->get($i)); } } return $il; }
public function setStats(ListInterval $listInterval, ListScheme $schemes) { /*foreach ($listInterval as $key => $interval) { foreach ($this->listFormula as $kkey => $formula) { $interval->setStat($formula, $schemes); } }*/ $i = 0; while ($i < $listInterval->size()) { $j = 0; while ($j < count($this->listFormula)) { $listInterval->get($i)->setStat($this->listFormula[$j], $schemes); $j++; } $i++; } }