public function runExperiment(Experiment $experiment)
    {
        if ($experiment->shouldRun()) {
            $report = $this->getReport($experiment);
            return $report->getControl()->getValue();
        }

        return call_user_func_array(
            $experiment->getControl(),
            $experiment->getParams()
        );
    }
public function runExperiment(Experiment $experiment)
    {
        if ($experiment->shouldRun()) {
            $report = $this->getReport($experiment);
            return $report->getControl()->getValue();
        }

        return call_user_func_array(
            $experiment->getControl(),
            $experiment->getParams()
        );
    }
public function runExperiment ( Experiment $ experiment ) { if ( $ experiment -> shouldRun ( ) ) { $ report = $ this -> getReport ( $ experiment ) ; return $ report -> getControl ( ) -> getValue ( ) ; } return call_user_func_array ( $ experiment -> getControl ( ) , $ experiment -> getParams ( ) ) ; }
Run an experiment.

@param \Scientist\Experiment $experiment

@return mixed
Run an experiment .