public function get_most_recent_prediction_range() {

        $ranges = $this->get_all_ranges();

        // Opposite order as we are interested in the last range that can be used for prediction.
        krsort($ranges);

        // We already provided the analysable to the time splitting method, there is no need to feed it back.
        foreach ($ranges as $rangeindex => $range) {
            if ($this->ready_to_predict($range)) {
                // We need to maintain the same indexes.
                return array($rangeindex => $range);
            }
        }

        return array();
    }
public function get_most_recent_prediction_range() {

        $ranges = $this->get_all_ranges();

        // Opposite order as we are interested in the last range that can be used for prediction.
        krsort($ranges);

        // We already provided the analysable to the time splitting method, there is no need to feed it back.
        foreach ($ranges as $rangeindex => $range) {
            if ($this->ready_to_predict($range)) {
                // We need to maintain the same indexes.
                return array($rangeindex => $range);
            }
        }

        return array();
    }
public function get_most_recent_prediction_range ( ) { $ ranges = $ this -> get_all_ranges ( ) ; // Opposite order as we are interested in the last range that can be used for prediction. krsort ( $ ranges ) ; // We already provided the analysable to the time splitting method, there is no need to feed it back. foreach ( $ ranges as $ rangeindex => $ range ) { if ( $ this -> ready_to_predict ( $ range ) ) { // We need to maintain the same indexes. return array ( $ rangeindex => $ range ) ; } } return array ( ) ; }
Returns the most recent range that can be used to predict.

This method is only called when calculating predictions.

@return array
Returns the most recent range that can be used to predict .