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