public class ProjectionTools
extends java.lang.Object
Constructor and Description |
---|
ProjectionTools() |
Modifier and Type | Method and Description |
---|---|
static double |
hyperellipse(double y,
double kappa)
Part of computing a hyperellipse; takes only a y parameter corresponding to the y on a map and a kappa parameter
used by Tobler's hyperelliptical projection to determine shape.
|
static double |
simpsonIntegrateHyperellipse(double a,
double b,
double h,
double kappa)
Performs a definite integral using Simpson's rule and a constant step size; hard-coded to integrate a
hyperellipse function.
|
static double[] |
simpsonODESolveHyperellipse(double T,
double[] y,
double h,
double alpha,
double kappa,
double epsilon)
Solves a simple ODE using Simpson's rule and a constant step size; hard-coded to solve a hyperelliptical map
projection task.
|
public static double simpsonIntegrateHyperellipse(double a, double b, double h, double kappa)
a
- The start of the integration regionb
- The end of the integration region (must be greater than a)h
- The step size (must be positive)kappa
- the kappa value of the hyperellipsepublic static double[] simpsonODESolveHyperellipse(double T, double[] y, double h, double alpha, double kappa, double epsilon)
T
- The maximum time value at which to sample (must be positive)y
- the double array to fill with samples; must not be null and must have length 1 or greaterh
- The internal step size (must be positive)alpha
- part of the hyperelliptical projection's parameterskappa
- part of the hyperelliptical projection's parametersepsilon
- calculated beforehand using simpsonIntegrateHyperellipse(double, double, double, double)
public static double hyperellipse(double y, double kappa)
y
- y on a map, usually -1.0 to 1.0kappa
- one of the Tobler parametersCopyright © Eben Howard 2012–2022. All rights reserved.