public class RandomVector extends AbstractReadOnlyVector
Vector.Element| Constructor and Description |
|---|
RandomVector() |
RandomVector(int size) |
RandomVector(int size,
boolean fastHash) |
RandomVector(Map<String,Object> args) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
Vector |
like(int crd)
Creates new empty vector of the same underlying class but of different cardinality.
|
Matrix |
likeMatrix(int rows,
int cols)
Creates new matrix of compatible flavor with given size.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
compute, copy, cross, divide, logNormalize, logNormalize, map, map, map, times, toMatrix, toMatrixPlusOneall, allSpliterator, assign, assign, assign, assign, checkCardinality, checkCardinality, checkCardinality, checkIndex, destroy, dot, dotSelf, foldMap, foldMap, get, getDistanceSquared, getElement, getLengthSquared, getMetaStorage, getStorage, getX, guid, increment, incrementX, isArrayBased, isDense, isDistributed, isRandomAccess, isSequentialAccess, isZero, kNorm, makeElement, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroes, nonZeroSpliterator, normalize, normalize, plus, plus, set, setStorage, setX, size, sort, storageGet, storageSet, sum, times, viewPartclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAttribute, hasAttribute, removeAttribute, setAttributepublic RandomVector(int size,
boolean fastHash)
size - Vector cardinality.fastHash - Whether or not to use fast hashing or Murmur hashing.public RandomVector(int size)
size - Vector cardinality.public RandomVector(Map<String,Object> args)
args - Parameters to create new vector instance.public RandomVector()
public Vector like(int crd)
crd - Cardinality for new vector.public Matrix likeMatrix(int rows, int cols)
rows - Number of rows.cols - Number of columns.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractVectorIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractVectorIOExceptionClassNotFoundExceptionpublic int hashCode()
hashCode in class AbstractVectorpublic boolean equals(Object o)
equals in class AbstractVector
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018