| Modifier and Type | Method and Description |
|---|---|
static S2 |
generate(clojure.lang.IFn.L g)
g is a 'function' of no arguments, which is
expected to return a different value on each call, typically
wrapping some pseudo-random number generator. |
short |
get0() |
short |
get1() |
double |
l1Norm()
Here as a convenience.
|
Vector |
linearCombination(Number a0,
Number a1,
Vector v1)
Almost certainly would want scalars to be primitive,
not Object references.
|
static S2 |
make(short v0,
short v1) |
public final short get0()
public final short get1()
public final Vector linearCombination(Number a0, Number a1, Vector v1)
VectorHere as a convenience. Doesn't belong in a vector interface, because same vector can be in many different linear spaces, with differing interpretations of linear combination.
linearCombination in interface Vectorpublic final double l1Norm()
Vectorpublic static final S2 make(short v0, short v1)
public static final S2 generate(clojure.lang.IFn.L g)
g is a 'function' of no arguments, which is
expected to return a different value on each call, typically
wrapping some pseudo-random number generator.
Clojure unfortunately only supports functions returning
primitive long and double
values.an - exception if the generated value is not within
the valid range.Copyright © 2017. All rights reserved.