| Modifier and Type | Method and Description |
|---|---|
static D2 |
generate(clojure.lang.IFn.D 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. |
double |
get0() |
double |
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 D2 |
make(double v0,
double v1) |
public final double get0()
public final double 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 D2 make(double v0, double v1)
public static final D2 generate(clojure.lang.IFn.D 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.