Package | Description |
---|---|
cat.lump.aq.basics.algebra.matrix | |
cat.lump.aq.basics.algebra.vector | |
cat.lump.ir.retrievalmodels.similarity | |
cat.lump.ir.sim.ml.esa |
Modifier and Type | Method and Description |
---|---|
Vector |
DynamicMatrixOfVectors.get(int position)
Get the vector from the specified position.
|
Vector[] |
DynamicMatrixOfVectors.getMatrix() |
Modifier and Type | Method and Description |
---|---|
int |
DynamicMatrixOfVectors.add(Vector vector)
Adds a new vector to the matrix, in the last available slot
|
int |
DynamicMatrixOfVectors.put(Vector vector,
int position)
Store the vector in the specified position of the array.
|
Modifier and Type | Method and Description |
---|---|
Vector |
Vector.add(Vector v)
Sums the contents of v to vector
This method does not modify the vector.
|
Modifier and Type | Method and Description |
---|---|
Vector |
Vector.add(Vector v)
Sums the contents of v to vector
This method does not modify the vector.
|
void |
Vector.addEquals(Vector v)
Sums v2 to vector and store the result in the vector itself.
|
float |
Vector.dotProduct(Vector v)
Computes the dot product between the vector and vector v2.
|
boolean |
Vector.sameCardinality(Vector v)
Check if the vector and v2 have the same cardinality.
|
Modifier and Type | Method and Description |
---|---|
double |
SimilarityMeasure.compute(Vector v1,
Vector v2) |
double |
VectorCosine.compute(Vector v1,
Vector v2)
Computes the cosine similarity measure between two vectors
sim(v1,v2) = (v1 * v2) / (|v1||v2|)
|
Modifier and Type | Method and Description |
---|---|
Vector |
EsaGenerator.computeVector(java.lang.String text)
Computes the ESA vector representation for the given text.
|
Vector[] |
EsaVectors.getAllVectors() |
Vector |
EsaVectors.getVector(int i)
Obtain the vector corresponding to this slot
|
Vector |
EsaVectors.getVector(java.lang.String id)
Obtain the vector corresponding to this id
(null if it does not exist)
|
Modifier and Type | Method and Description |
---|---|
void |
EsaVectors.addVector(Vector vector,
java.lang.String id)
Add a new vector into the matrix.
|
void |
EsaVectors.modifyVector(Vector vector,
java.lang.String id)
Very unlikely to happen, but a previously filled vector
could be modified.
|