public final class LinSpace extends Object
start and end. The spacing
between the points is (end-start)/(n-1) where n is the number
of points. A LinSpace always includes the endpoints. If end
is smaller than start, then the LinSpace describes descending
values.
Note that indexes are 1-based!
| Modifier and Type | Method and Description |
|---|---|
LinSpace |
allocate() |
static LinSpace |
centeredDoubleIndexed(double[] data) |
static LinSpace |
centeredIntIndexed(double[] data) |
static LinSpace |
compute(double start,
double end,
int numberOfPoints,
DFunction fun) |
double |
end() |
LinSpace |
eval(DFunction fun) |
DForEach |
forEach() |
DForEachBi |
forEachBi() |
boolean |
hasValues() |
DIndexIterator |
iterator() |
static LinSpace |
linspace(double start,
double end)
Returns
128 evenly spaced points between start and
end (including the interval endpoints). |
static LinSpace |
linspace(double start,
double end,
int numberOfPoints) |
double |
point(int pos) |
double[] |
points() |
LinSpace |
setValue(int pos,
double x) |
int |
size() |
LinSpace |
slice(int from,
int to) |
LinSpace |
sliceFrom(int from) |
LinSpace |
sliceTo(int to) |
double |
spacing() |
double |
start() |
String |
toString() |
double |
value(int pos) |
double[] |
values() |
public double spacing()
public int size()
public double start()
public double end()
public DIndexIterator iterator()
public LinSpace slice(int from, int to)
public LinSpace sliceTo(int to)
public LinSpace sliceFrom(int from)
public double point(int pos)
public LinSpace allocate()
public double[] points()
public double value(int pos)
public double[] values()
public LinSpace setValue(int pos, double x)
public DForEach forEach()
public DForEachBi forEachBi()
public static LinSpace linspace(double start, double end)
128 evenly spaced points between start and
end (including the interval endpoints).start - start point of interval (included)end - endpoint of interval (included)128 pointspublic static LinSpace linspace(double start, double end, int numberOfPoints)
public static LinSpace centeredIntIndexed(double[] data)
public static LinSpace centeredDoubleIndexed(double[] data)
public boolean hasValues()
Copyright © 2022. All rights reserved.