You are here

class RealVector in Recommender API 7.6

Same name and namespace in other branches
  1. 6.2 Matrix.php \RealVector

Looks like there's no need to overload function for RealVector

Hierarchy

Expanded class hierarchy of RealVector

4 string references to 'RealVector'
Matrix::row_vectors in classes/Matrix.php
Only return the row vectors that have at least one element. Work for both RealMatrix and SparseMatrix
SparseVector::common_items in classes/Matrix.php
Vector::create in classes/Matrix.php
Factory method to create a vector. Note, no parameter checking. Array index has to be [0..n), otherwise program unstable
Vector::wrap in classes/Matrix.php
Factory method. Wrap the array of numbers into the vector. Note: passing by reference!

File

classes/Matrix.php, line 287

View source
class RealVector extends Vector {

}

Members

Namesort descending Modifiers Type Description Overrides
Vector::$count protected property
Vector::$mean protected property
Vector::$std protected property
Vector::$values protected property
Vector::$variance protected property
Vector::correlation function Compute correlation with $vector. No caching option. Works for RealVector. SparseVector needs additional handling. 1
Vector::count function Count the number of vectors. This works for SparseVector too. It only counts valid numbers, not the size the vector is supposed to be.
Vector::covariance function Compute covariance with $vector. No caching option. Works for RealVector. SparseVector needs additional handling. 1
Vector::create static function Factory method to create a vector. Note, no parameter checking. Array index has to be [0..n), otherwise program unstable
Vector::get function
Vector::mean function Calculate the mean. This works for SparseMatrix too.
Vector::set function
Vector::std function
Vector::variance function Calculate the variance. This works for SparseMatrix too.
Vector::wrap static function Factory method. Wrap the array of numbers into the vector. Note: passing by reference!
Vector::__construct protected function