Package | Description |
---|---|
edu.ucla.sspace.common | |
edu.ucla.sspace.index | |
edu.ucla.sspace.rri | |
edu.ucla.sspace.similarity | |
edu.ucla.sspace.vector |
Modifier and Type | Method and Description |
---|---|
static double |
Similarity.correlation(IntegerVector arr1,
DoubleVector arr2)
Returns the Pearson product-moment correlation coefficient of the two
Vector s. |
static double |
Similarity.cosineSimilarity(IntegerVector a,
IntegerVector b)
Returns the cosine similarity of the two
DoubleVector . |
static double |
Similarity.euclideanDistance(IntegerVector a,
IntegerVector b)
Returns the euclidian distance between two
DoubleVector s. |
static double |
Similarity.jaccardIndex(IntegerVector a,
IntegerVector b)
Computes the Jaccard
index comparing the similarity both
IntegerVector s when viewed
as sets of samples. |
static double |
Similarity.kendallsTau(IntegerVector a,
IntegerVector b)
Computes Kendall's
tau of the values in the two vectors.
|
static double |
Similarity.klDivergence(IntegerVector a,
IntegerVector b)
Computes the K-L Divergence of two probability distributions
A
and B where the vectors a and b correspond to
n samples from each respective distribution. |
static double |
Similarity.linSimilarity(IntegerVector a,
IntegerVector b)
Computes the lin similarity measure, which is motivated by information
theory priniciples.
|
static double |
Similarity.spearmanRankCorrelationCoefficient(IntegerVector a,
IntegerVector b)
Computes the Spearman rank correlation coefficient for the two
DoubleVector s. |
static double |
Similarity.tanimotoCoefficient(IntegerVector a,
IntegerVector b)
Returns the Tanimoto Coefficient of the two
IntegerVector
instances |
Modifier and Type | Interface and Description |
---|---|
interface |
IntegerVectorGenerator<T extends IntegerVector>
An interface for classes which will maintain and generate random
IntegerVector s. |
Modifier and Type | Method and Description |
---|---|
IntegerVector |
ReflectiveRandomIndexing.getVector(String word)
Returns the semantic vector for the provided word.
|
Modifier and Type | Method and Description |
---|---|
double |
CosineSimilarity.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
EuclideanSimilarity.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
JaccardIndex.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
TanimotoCoefficient.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
DotProduct.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
KLDivergence.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
GaussianKernel.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
LinSimilarity.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
OneSimilarity.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
SimilarityFunction.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
KendallsTau.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
AverageCommonFeatureRank.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
PearsonCorrelation.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
SpearmanRankCorrelation.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
double |
PolynomialKernel.sim(IntegerVector v1,
IntegerVector v2)
Returns the similarity between
v1 and v2 . |
Modifier and Type | Interface and Description |
---|---|
interface |
SparseIntegerVector
An interface for sparse
IntegerVector instances. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractIntegerVector
An abstract base class that provides default implementations of common
methods in
IntegerVector . |
class |
CompactSparseIntegerVector
A sparse
IntegerVector class whose data is back by a compact sparse
array. |
class |
DenseIntVector
An
IntegerVector class whose data is back by an array. |
class |
SparseHashIntegerVector
A
SparseVector implementation backed by a HashMap . |
class |
TernaryVector
An unmodifiable vector with ternary (+1, 0, -1) values.
|
Modifier and Type | Method and Description |
---|---|
static IntegerVector |
VectorMath.add(IntegerVector vector1,
IntegerVector vector2)
Adds the second
IntegerVector to the first IntegerVector
and returns the result. |
static IntegerVector |
VectorMath.addUnmodified(IntegerVector vector1,
IntegerVector vector2)
Returns a new
IntegerVector which is the summation of vector2 and vector1 . |
static IntegerVector |
Vectors.asVector(int[] array)
Returns a vector backed by the specified array.
|
static IntegerVector |
Vectors.copyOf(IntegerVector source)
Creates a copy of a given
IntegerVector with the same type as the
original. |
static IntegerVector |
Vectors.immutable(IntegerVector vector)
Returns an immutable view of the given
IntegerVector . |
static IntegerVector |
VectorMath.multiply(IntegerVector left,
IntegerVector right)
Multiply the values in
left and right and store the
product in left . |
static IntegerVector |
VectorMath.subtract(IntegerVector vector1,
IntegerVector vector2)
Subtracts the second
IntegerVector from the first IntegerVector and returns the result. |
static IntegerVector |
Vectors.subview(IntegerVector vector,
int offset,
int length)
Returns a subview for the given
IntegerVector with a specified
offset and length. |
Modifier and Type | Method and Description |
---|---|
static IntegerVector |
VectorMath.add(IntegerVector vector1,
IntegerVector vector2)
Adds the second
IntegerVector to the first IntegerVector
and returns the result. |
static IntegerVector |
VectorMath.addUnmodified(IntegerVector vector1,
IntegerVector vector2)
Returns a new
IntegerVector which is the summation of vector2 and vector1 . |
static Vector |
VectorMath.addWithScalars(IntegerVector vector1,
int weight1,
IntegerVector vector2,
int weight2)
Adds two
IntegerVector s with some scalar weight for each Vector . |
static IntegerVector |
Vectors.copyOf(IntegerVector source)
Creates a copy of a given
IntegerVector with the same type as the
original. |
static int |
VectorMath.dotProduct(IntegerVector a,
IntegerVector b)
Computes the dot product,
a Tb of the two
vectors. |
static boolean |
Vectors.equals(IntegerVector v1,
IntegerVector v2)
Returns
true if the two integer vectors are equal to one another. |
static IntegerVector |
Vectors.immutable(IntegerVector vector)
Returns an immutable view of the given
IntegerVector . |
static IntegerVector |
VectorMath.multiply(IntegerVector left,
IntegerVector right)
Multiply the values in
left and right and store the
product in left . |
static IntegerVector |
VectorMath.subtract(IntegerVector vector1,
IntegerVector vector2)
Subtracts the second
IntegerVector from the first IntegerVector and returns the result. |
static IntegerVector |
Vectors.subview(IntegerVector vector,
int offset,
int length)
Returns a subview for the given
IntegerVector with a specified
offset and length. |
Constructor and Description |
---|
CompactSparseIntegerVector(IntegerVector v)
Creates a new vector using the values of the specified vector.
|
DenseIntVector(IntegerVector v)
Creates a new vector using the values of the specified vector.
|
Copyright © 2012. All Rights Reserved.