public interface NamedVector extends Vector
Vector. In addition to base vector functionality allows to set and get
elements using names as index.Vector.Element| Modifier and Type | Method and Description |
|---|---|
double |
get(String idx)
Returns element with specified string index.
|
Set<String> |
getKeys()
Returns list of string indexes used in this vector.
|
NamedVector |
set(String idx,
double val)
Sets element with specified string index and value.
|
all, allSpliterator, asArray, assign, assign, assign, assign, compute, copy, copyOfRange, cross, divide, dot, foldMap, foldMap, get, getDistanceSquared, getElement, getLengthSquared, getRaw, getRawX, getStorage, getX, guid, increment, incrementX, kNorm, labeled, like, likeMatrix, logNormalize, logNormalize, map, map, map, maxElement, maxValue, minElement, minus, minValue, nonZeroElements, nonZeroes, nonZeroSpliterator, normalize, normalize, plus, plus, set, setRaw, setRawX, setX, size, sort, sum, times, times, toMatrix, toMatrixPlusOne, viewPartgetAttribute, getMetaStorage, hasAttribute, removeAttribute, setAttributereadExternal, writeExternalisArrayBased, isDense, isDistributed, isNumericdestroydouble get(String idx)
idx - Element string index.NamedVector set(String idx, double val)
idx - Element string index.val - Element value.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024