public class GridSpacing extends java.lang.Object
Modified by: Joseph A. Huwaldt
Modifier and Type | Class and Description |
---|---|
static class |
GridSpacing.GridType
An enumeration of the available grid spacing types.
|
Constructor and Description |
---|
GridSpacing() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Double> |
acos(int n)
Returns a list of values with an arc-cosine spacing between 0 and 1.
|
static java.util.List<java.lang.Double> |
cos(int n)
Returns a list of values with a cosine spacing between 0 and 1.
|
static java.util.List<java.lang.Double> |
linear(int n)
Returns a list of values evenly or linearly spaced between 0 and 1.
|
static java.util.List<java.lang.Double> |
oneMinusSqrt(int n)
Returns a list of values with a 1-square root spacing between 0 and 1.
|
static java.util.List<java.lang.Double> |
sqr(int n)
Returns a list of values with a squared spacing between 0 and 1.
|
static java.util.List<java.lang.Double> |
sqrt(int n)
Returns a list of values with a square root spacing between 0 and 1.
|
static java.util.List<java.lang.Double> |
tanh(int n,
double ds1,
double ds2)
Returns a list of values with a hyperbolic tangent spacing between 0 and
1.
|
public GridSpacing()
public static java.util.List<java.lang.Double> linear(int n)
n
- The number of points to include in the spacing.n
, evenly spaced between 0
and 1.public static java.util.List<java.lang.Double> cos(int n)
n
- The number of points to include in the spacing.n
, with a cosine spacing
between 0 and 1.public static java.util.List<java.lang.Double> acos(int n)
n
- The number of points to include in the spacing.n
, with an arc-cosine
spacing between 0 and 1.public static java.util.List<java.lang.Double> sqrt(int n)
n
- The number of points to include in the spacing.n
, with a square root
spacing between 0 and 1.public static java.util.List<java.lang.Double> oneMinusSqrt(int n)
n
- The number of points to include in the spacing.n
, with a square root
spacing between 0 and 1.public static java.util.List<java.lang.Double> sqr(int n)
n
- The number of points to include in the spacing.n
, with a squared spacing
between 0 and 1.public static java.util.List<java.lang.Double> tanh(int n, double ds1, double ds2)
n
- The number of points to include in the spacing.ds1
- The fractional arc-length for the 1st segment at the start of
the list.ds2
- The fractional arc-length for the last segment at the end of
the list.n
, with a hyperbolic
tangent spacing between 0 and 1.