function SparseVector::intersect_mean in Recommender API 7.6
File
- classes/
Matrix.php, line 335
Class
- SparseVector
- Sparse Vector takes care of missing data.
Code
function intersect_mean(&$vector) {
$subset = $this
->common_items($vector);
if ($subset === NULL) {
return NAN;
}
return $subset[0]
->mean(TRUE);
}