public class Vectorz extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
TEST_EPSILON
Constant tolerance used for testing double values
|
| Constructor and Description |
|---|
Vectorz() |
| Modifier and Type | Method and Description |
|---|---|
static double |
averageValue(AVector v) |
static void |
copy(AVector source,
int srcOffset,
AVector dest,
int destOffset,
int length) |
static AVector |
create(double... data) |
static AVector |
create(List<Object> d) |
static AVector |
createLength(int length)
Returns a vector filled with zeros of the specified length.
|
static AVector |
createMutableVector(AVector t) |
static AVector |
createSameSize(AVector v) |
static AVector |
createUniformRandomVector(int dimensions) |
static AVector |
createZeroVector(int length) |
static AVector |
deepCopy(AVector vector) |
static void |
fillGaussian(AVector v) |
static void |
fillGaussian(AVector v,
double mean,
double sd) |
static void |
fillRandom(AVector v) |
static AVector |
immutableZeroVector(int dimensions)
Returns an immutable vector of zeros
|
static AVector |
join(AVector... vectors) |
static AVector |
join(AVector first,
AVector second)
Creates a joined vector that refers to the two underlying vectors
|
static AVector |
join(List<AVector> vectors) |
static double |
maxValue(AVector v) |
static double |
minValue(AVector v) |
static AVector |
parse(String ednString)
Parse a vector in edn format
|
static double |
totalValue(AVector v) |
static AVector |
wrap(double[] data) |
static AVector |
wrap(double[][] data) |
public static final double TEST_EPSILON
public static AVector create(double... data)
public static AVector join(AVector first, AVector second)
first - second - public static AVector createZeroVector(int length)
public static AVector wrap(double[] data)
public static AVector wrap(double[][] data)
public static AVector createLength(int length)
length - public static void copy(AVector source, int srcOffset, AVector dest, int destOffset, int length)
public static AVector createUniformRandomVector(int dimensions)
public static AVector immutableZeroVector(int dimensions)
dimensions - public static AVector parse(String ednString)
ednString - public static double minValue(AVector v)
public static double maxValue(AVector v)
public static double totalValue(AVector v)
public static double averageValue(AVector v)
public static void fillRandom(AVector v)
public static void fillGaussian(AVector v)
public static void fillGaussian(AVector v, double mean, double sd)
Copyright © 2012. All Rights Reserved.