public class GaussianVectorGenerator extends Object implements DoubleVectorGenerator<DoubleVector>, Serializable
"edu.ucla.sspace.index.GuassianVectorGenerator.stdev"
"edu.ucla.sspace.index.GuassianVectorGenerator.mean"
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MEAN |
static double |
DEFAULT_STANDARD_DEVIATION |
static String |
MEAN_PROPERTY
The property for setting the standard deviation.
|
static String |
STANDARD_DEVIATION_PROPERTY
The property for setting the standard deviation.
|
| Constructor and Description |
|---|
GaussianVectorGenerator(int indexVectorLength)
Create a
GaussianVectorGenerator that uses the system properties
for setup. |
GaussianVectorGenerator(int indexVectorLength,
Properties prop)
Create a
GaussianVectorGenerator which uses vectorLength as the size of each generated Vector. |
public static final String STANDARD_DEVIATION_PROPERTY
public static final String MEAN_PROPERTY
public static final double DEFAULT_STANDARD_DEVIATION
public static final String DEFAULT_MEAN
public GaussianVectorGenerator(int indexVectorLength)
GaussianVectorGenerator that uses the system properties
for setup.public GaussianVectorGenerator(int indexVectorLength,
Properties prop)
GaussianVectorGenerator which uses vectorLength as the size of each generated Vector.vectorLength - The length of each index and semantic Vector
used in this IndexVectorGenerator.public DoubleVector generate()
generate in interface DoubleVectorGenerator<DoubleVector>generate in interface Generator<DoubleVector>Copyright © 2012. All Rights Reserved.