public class HashedVector extends WeightedVector
Vector.Element| Modifier and Type | Field and Description |
|---|---|
protected static int |
INVALID_INDEX |
delegate| Constructor and Description |
|---|
HashedVector(Vector vector,
long hash,
int index) |
HashedVector(Vector vector,
Matrix projection,
int index,
long mask) |
HashedVector(WeightedVector weightedVector,
Matrix projection,
long mask) |
| Modifier and Type | Method and Description |
|---|---|
static long |
computeHash64(Vector vector,
Matrix projection) |
boolean |
equals(Object o) |
long |
getHash() |
int |
hammingDistance(long otherHash) |
static HashedVector |
hash(WeightedVector v,
Matrix projection) |
static HashedVector |
hash(WeightedVector v,
Matrix projection,
long mask) |
int |
hashCode() |
String |
toString() |
clone, getIndex, getWeight, like, project, project, setIndex, setWeightaggregate, aggregate, all, asFormatString, assign, assign, assign, assign, assign, assign, cross, divide, dot, get, getDistanceSquared, getElement, getIteratorAdvanceCost, getLengthSquared, getLookupCost, getNumNondefaultElements, getNumNonZeroElements, getQuick, getVector, incrementQuick, invalidateCachedLength, isAddConstantTime, isDense, isSequentialAccess, like, logNormalize, logNormalize, maxValue, maxValueIndex, mergeUpdates, minus, minValue, minValueIndex, nonZeroes, norm, normalize, normalize, plus, plus, set, setQuick, size, times, times, viewPart, zSumprotected static final int INVALID_INDEX
public HashedVector(Vector vector, long hash, int index)
public HashedVector(WeightedVector weightedVector, Matrix projection, long mask)
public static HashedVector hash(WeightedVector v, Matrix projection)
public static HashedVector hash(WeightedVector v, Matrix projection, long mask)
public int hammingDistance(long otherHash)
public long getHash()
public String toString()
toString in class WeightedVectorpublic boolean equals(Object o)
equals in class DelegatingVectorpublic int hashCode()
hashCode in class DelegatingVectorCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.