public interface Vector extends Normalizable
| Modifier and Type | Method and Description |
|---|---|
void |
add(float coeff,
float vectorCoeff,
Vector vector)
Add a
vector multiplied by vectorCoeff to this
vector multiplied by |
void |
add(float coeff,
Vector vector)
Add a
vector multiplied by coeff to this vector |
void |
add(Vector vector)
Add a
vector to this vector |
Vector |
copyVector()
Returns a copy of this vector.
|
Map<String,Number> |
getActiveFeatures()
Returns a map containing all the non-zero features
|
Vector |
getZeroVector()
Returns a vector whose values are all 0.
|
float |
innerProduct(Vector vector)
Returns the dot product between this vector and
vector |
void |
pointWiseProduct(Vector vector)
Compute the point-wise product of this vector with the one in
vector. |
getSquaredNorm, normalize, scalegetTextFromData, setDataFromTextfloat innerProduct(Vector vector)
vectorvector - void pointWiseProduct(Vector vector)
vector.vector - the vector used for the point-wise productvoid add(Vector vector)
vector to this vectorvector - the vector to be addedvoid add(float coeff,
Vector vector)
vector multiplied by coeff to this vectorcoeff - the vector coefficientvector - the vector to be addedvoid add(float coeff,
float vectorCoeff,
Vector vector)
vector multiplied by vectorCoeff to this
vector multiplied bycoeff - the coefficient of this vectorvectorCoeff - the vector coefficientvector - the vector to be addedVector getZeroVector()
Vector copyVector()
Copyright © 2015 Semantic Analytics Group @ Uniroma2. All rights reserved.