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, setWeight
aggregate, 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, logNormalize, logNormalize, maxValue, maxValueIndex, mergeUpdates, minus, minValue, minValueIndex, nonZeroes, norm, normalize, normalize, plus, plus, set, setQuick, size, times, times, viewPart, zSum
protected 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 WeightedVector
public boolean equals(Object o)
equals
in class DelegatingVector
public int hashCode()
hashCode
in class DelegatingVector
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.