Package | Description |
---|---|
org.openimaj.feature | |
org.openimaj.lsh.functions | |
org.openimaj.util.array |
Modifier and Type | Field and Description |
---|---|
SparseShortArray |
SparseShortFV.values
The underlying data backing the feature vector
|
Modifier and Type | Method and Description |
---|---|
SparseShortArray |
SparseShortFV.getVector() |
Modifier and Type | Method and Description |
---|---|
abstract double |
SparseShortFVComparison.compare(SparseShortArray h1,
SparseShortArray h2)
Compare two feature vectors in the form of sparse arrays,
returning a score or distance.
|
Constructor and Description |
---|
SparseShortFV(SparseShortArray values)
Construct from sparse array
|
Modifier and Type | Method and Description |
---|---|
int |
ShortHashFunction.computeHashCode(SparseShortArray array)
Compute the hash code for the sparse array.
|
int |
ShortPStableFactory.PStableFunction.computeHashCode(SparseShortArray array) |
Modifier and Type | Class and Description |
---|---|
class |
SparseBinSearchShortArray
A Sparse array of short values implemented using a pair of
sorted parallel arrays.
|
class |
SparseHashedShortArray
A
SparseShortArray implementation based on a
TIntShortHashMap . |
Modifier and Type | Method and Description |
---|---|
SparseShortArray |
SparseShortArray.add(SparseShortArray vector)
Add the values in the given vector to a copy of
this array and return the result
|
SparseShortArray |
SparseShortArray.addInplace(SparseShortArray vector)
Add the values in the given vector to
this vector and return this
|
SparseShortArray |
SparseShortArray.concatenate(List<SparseShortArray> ins) |
SparseShortArray |
SparseShortArray.concatenate(SparseShortArray... ins) |
static SparseShortArray |
SparseShortArray.concatenateArrays(SparseShortArray... arrays)
Concatenate multiple arrays into a single new array.
|
abstract SparseShortArray |
SparseShortArray.copy()
Deep copy the array.
|
SparseShortArray |
SparseHashedShortArray.copy() |
SparseShortArray |
SparseBinSearchShortArray.copy() |
SparseShortArray |
SparseShortArray.multiply(double value)
Copy this vector and multiply its values by a
scalar
|
SparseShortArray |
SparseShortArray.multiplyInplace(double value)
Multiply the values inplace by a scalar and return this
|
abstract SparseShortArray |
SparseShortArray.reverse()
Reverse the elements, returning this.
|
SparseShortArray |
SparseHashedShortArray.reverse() |
SparseShortArray |
SparseBinSearchShortArray.reverse() |
SparseShortArray |
SparseShortArray.subtract(SparseShortArray vector)
Subtract the values in the given vector from a copy of
this vector and return the result
|
SparseShortArray |
SparseShortArray.subtractInplace(SparseShortArray vector)
Subtract the values in the given vector from
this array and return this
|
Modifier and Type | Method and Description |
---|---|
SparseShortArray |
SparseShortArray.add(SparseShortArray vector)
Add the values in the given vector to a copy of
this array and return the result
|
SparseShortArray |
SparseShortArray.addInplace(SparseShortArray vector)
Add the values in the given vector to
this vector and return this
|
SparseShortArray |
SparseShortArray.concatenate(SparseShortArray... ins) |
static SparseShortArray |
SparseShortArray.concatenateArrays(SparseShortArray... arrays)
Concatenate multiple arrays into a single new array.
|
double |
SparseShortArray.dotProduct(SparseShortArray vector)
Compute the dot product with another vector
|
Iterable<SparseShortArray.DualEntry> |
SparseShortArray.intersectEntries(SparseShortArray otherArray)
Provide an iterator over the intersection of values present in
both this array and another array.
|
SparseShortArray |
SparseShortArray.subtract(SparseShortArray vector)
Subtract the values in the given vector from a copy of
this vector and return the result
|
SparseShortArray |
SparseShortArray.subtractInplace(SparseShortArray vector)
Subtract the values in the given vector from
this array and return this
|
Iterable<SparseShortArray.DualEntry> |
SparseShortArray.unionEntries(SparseShortArray otherArray)
Provide an iterator over the union of values present in
both this array and another array.
|
Iterable<SparseShortArray.DualEntry> |
SparseBinSearchShortArray.unionEntries(SparseShortArray otherArray) |
Modifier and Type | Method and Description |
---|---|
SparseShortArray |
SparseShortArray.concatenate(List<SparseShortArray> ins) |