private function get_predict_samples_record(\core_analytics\local\time_splitting\base $timesplitting, int $rangeindex) {
        global $DB;

        $params = array('modelid' => $this->analyser->get_modelid(), 'analysableid' => $timesplitting->get_analysable()->get_id(),
            'timesplitting' => $timesplitting->get_id(), 'rangeindex' => $rangeindex);
        $predictedrange = $DB->get_record('analytics_predict_samples', $params);

        return $predictedrange;
    }
private function get_predict_samples_record(\core_analytics\local\time_splitting\base $timesplitting, int $rangeindex) {
        global $DB;

        $params = array('modelid' => $this->analyser->get_modelid(), 'analysableid' => $timesplitting->get_analysable()->get_id(),
            'timesplitting' => $timesplitting->get_id(), 'rangeindex' => $rangeindex);
        $predictedrange = $DB->get_record('analytics_predict_samples', $params);

        return $predictedrange;
    }
private function get_predict_samples_record ( \ core_analytics \ local \ time_splitting \ base $ timesplitting , int $ rangeindex ) { global $ DB ; $ params = array ( 'modelid' => $ this -> analyser -> get_modelid ( ) , 'analysableid' => $ timesplitting -> get_analysable ( ) -> get_id ( ) , 'timesplitting' => $ timesplitting -> get_id ( ) , 'rangeindex' => $ rangeindex ) ; $ predictedrange = $ DB -> get_record ( 'analytics_predict_samples' , $ params ) ; return $ predictedrange ; }
Returns a predict samples record.

@param  \core_analytics\local\time_splitting\base $timesplitting
@param  int                                       $rangeindex
@return \stdClass|false
Returns a predict samples record .