class RealVector in Recommender API 6.2
Same name and namespace in other branches
- 7.6 classes/Matrix.php \RealVector
Looks like there's no need to overload function for RealVector
Hierarchy
- class \Vector
- class \RealVector
Expanded class hierarchy of RealVector
5 string references to 'RealVector'
- Matrix::row_vectors in ./
Matrix.php - Only return the row vectors that have at least one element. Work for both RealMatrix and SparseMatrix
- RecommenderMatrixTestCase::testVector in ./
recommender.test - SparseVector::common_items in ./
Matrix.php - Vector::create in ./
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 ./
Matrix.php - Factory method. Wrap the array of numbers into the vector. Note: passing by reference!
File
- ./
Matrix.php, line 292
View source
class RealVector extends Vector {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Vector:: |
protected | property | ||
Vector:: |
protected | property | ||
Vector:: |
protected | property | ||
Vector:: |
protected | property | ||
Vector:: |
protected | property | ||
Vector:: |
function | Compute correlation with $vector. No caching option. Works for RealVector. SparseVector needs additional handling. | 1 | |
Vector:: |
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:: |
function | Compute covariance with $vector. No caching option. Works for RealVector. SparseVector needs additional handling. | 1 | |
Vector:: |
static | function | Factory method to create a vector. Note, no parameter checking. Array index has to be [0..n), otherwise program unstable | |
Vector:: |
function | |||
Vector:: |
function | Calculate the mean. This works for SparseMatrix too. | ||
Vector:: |
function | |||
Vector:: |
function | |||
Vector:: |
function | Calculate the variance. This works for SparseMatrix too. | ||
Vector:: |
static | function | Factory method. Wrap the array of numbers into the vector. Note: passing by reference! | |
Vector:: |
protected | function |