| Modifier and Type | Method and Description |
|---|---|
static L2 |
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. |
long |
get0() |
long |
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 L2 |
make(long v0,
long v1) |
public final long get0()
public final long 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 L2 make(long v0, long v1)
public static final L2 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.Copyright © 2017. All rights reserved.