| Modifier and Type | Method and Description |
|---|---|
static F2 |
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. |
float |
get0() |
float |
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 F2 |
make(float v0,
float v1) |
public final float get0()
public final float 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 F2 make(float v0, float v1)
public static final F2 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.an - exception if the generated value is not within
the valid range.Copyright © 2017. All rights reserved.