Mass Exam Marker Plugin
A Moodle plugin to help mark massive exams.
 All Data Structures Namespaces Files Functions Variables
stats Class Reference

Public Member Functions

 to_percentage_array ($raw_score_array, $max_marks)
 
 mean ($data_array)
 
 median ($data_array)
 
 spread ($data_array)
 
 min ($data_array)
 
 max ($data_array)
 
 graph ($raw_score, $percentage_interval, $total_mark)
 

Detailed Description

This class contains methods to do statistical calculations for the graph and associated data.

Member Function Documentation

graph (   $raw_score,
  $percentage_interval,
  $total_mark 
)

Method to generate the graph PNG image. Calls upon stats_make_graph.php

max (   $data_array)

Method to calculate the maximum of a given array.

mean (   $data_array)

Method to calculate the mean of a given array.

median (   $data_array)

Method to calculate the median of a given array.

min (   $data_array)

Method to calculate the minimum of a given array.

spread (   $data_array)

Method to calculate the spread of a given array.

to_percentage_array (   $raw_score_array,
  $max_marks 
)

Converts the given array into percentage.


The documentation for this class was generated from the following file: