This class calculates statistical data for a test which has to be calculated using all participant datasets (like the median). More...
Public Member Functions | |
ilTestStatistics ($eval_data) | |
ilTestStatistics constructor | |
getStatistics () | |
Returns the statistics object. | |
calculateStatistics ($eval_data) | |
Instanciates the statistics object. | |
Data Fields | |
$statistics |
This class calculates statistical data for a test which has to be calculated using all participant datasets (like the median).
class.ilTestStatistics.php Assessment
Definition at line 37 of file class.ilTestStatistics.php.
ilTestStatistics::calculateStatistics | ( | $ | eval_data | ) |
Instanciates the statistics object.
Instanciates the statistics object
private
Definition at line 77 of file class.ilTestStatistics.php.
Referenced by ilTestStatistics().
{ $median_array = array(); foreach ($eval_data->getParticipantIds() as $active_id) { $participant =& $eval_data->getParticipant($active_id); array_push($median_array, $participant->getReached()); } $this->statistics = new ilStatistics(); $this->statistics->setData($median_array); }
ilTestStatistics::getStatistics | ( | ) |
Returns the statistics object.
Returns the statistics object
Definition at line 64 of file class.ilTestStatistics.php.
{
return $this->statistics;
}
ilTestStatistics::ilTestStatistics | ( | $ | eval_data | ) |
ilTestStatistics constructor
The constructor takes the id of an existing test object
integer | $a_test_id Test id public |
Definition at line 49 of file class.ilTestStatistics.php.
References calculateStatistics().
{ $this->statistics = NULL; $this->calculateStatistics($eval_data); }
ilTestStatistics::$statistics |
Definition at line 39 of file class.ilTestStatistics.php.