public class Utilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG |
static int |
DEBUG_LONGITUDES |
static int |
DEBUG_OFF |
static java.lang.String |
ID
Class identifier.
|
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
Longitudes_Overlap(double lower_bound1,
double upper_bound1,
double lower_bound2,
double upper_bound2)
A boolean method indicating if two longitude ranges overlap.
|
static void |
main(java.lang.String[] arguments) |
static double |
shift_to_180_domain(double coordinate)
Switches an input longitude between 180 and 360 into the -180-180
longitude domain.
|
static double |
stddev(java.util.Vector<java.lang.Double> data)
Computes the standard deviation of a Vector of Doubles.
|
static java.util.Vector<java.lang.String> |
valuesToString(java.util.Vector<PIRL.PVL.Value> input)
A utility method that converts a Vector of Parameter Values into a Vector
of Strings.
|
public static final java.lang.String ID
public static final int DEBUG_OFF
public static final int DEBUG_LONGITUDES
public static final int DEBUG
public static boolean Longitudes_Overlap(double lower_bound1, double upper_bound1, double lower_bound2, double upper_bound2)
If the upper bound of a longitude range is less than the lower bound, then this method assumes that the longitude range crosses 0 degrees longitude, and returns a bolean value based on that assumption.
lower_bound1
- The lower longitude bound of the first longitude rangeupper_bound1
- The upper longitude bound of the first longitude rangelower_bound2
- The lower longitude bound of the second longitude rangeupper_bound2
- The upper longitude bound of the second longitude rangejava.lang.IllegalArgumentException
- if any of the input longitudes are outside
of the range of 0-360.public static double shift_to_180_domain(double coordinate)
coordinate
- - the coordinate to shiftpublic static java.util.Vector<java.lang.String> valuesToString(java.util.Vector<PIRL.PVL.Value> input) throws PIRL.PVL.PVL_Exception
input
- - a Vector of valuesPIRL.PVL.PVL_Exception
- if an error occurs while converting to string values.public static double stddev(java.util.Vector<java.lang.Double> data)
data
- A vector containing the set of data to compute the standard
deviation for.public static void main(java.lang.String[] arguments)
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona