1 <?
php declare(strict_types=1);
56 $this->user_ids = array_values($user_ids);
111 $key = array_search($user_id, $this->user_order);
112 if (
$key ===
false) {
116 $peer_key = (
$key + $j) % (count($this->user_order));
117 $peers[] = $this->user_order[$peer_key];
randomUserOrder($user_ids)
Random user order.
initDistribution()
Init distribution.
getPeersOfRater($user_id)
Get peers of rater.
getUserOrder()
Get user order.
__construct(array $user_ids, $num_assignments)
ExcPeerReviewDistribution constructor.
Calculates peer review distribution (rater to peer assignments)