public class VectorizerUtils extends Object
Vectorizer
s.Constructor and Description |
---|
VectorizerUtils() |
Modifier and Type | Method and Description |
---|---|
static float[] |
randomVector(int aSize)
Create a random vector, calling
randomVector(int, long) with a
stable random seed, i.e. |
static float[] |
randomVector(int aSize,
long seed)
Create a random vector.
|
public static float[] randomVector(int aSize, long seed)
aSize
- the dimensionality of the vectorseed
- The random seedpublic static float[] randomVector(int aSize)
randomVector(int, long)
with a
stable random seed, i.e. always generating the same output.
Use randomVector(int, long)
to generate varying random vectors.
aSize
- the size of the vectorrandomVector(int, long)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.