org.opensha.commons.data.xyz
Class XYZ_DataSetMath

java.lang.Object
  extended by org.opensha.commons.data.xyz.XYZ_DataSetMath
Direct Known Subclasses:
GeoDataSetMath

public class XYZ_DataSetMath
extends Object

This class is used to perform common math operations on and between XYZ datasets.

Author:
kevin

Constructor Summary
XYZ_DataSetMath()
           
 
Method Summary
static XYZ_DataSet add(XYZ_DataSet map1, XYZ_DataSet map2)
          Returns new GeographicDataSetAPI that represents the values in the two given maps added together.
static XYZ_DataSet divide(XYZ_DataSet dividend, XYZ_DataSet divisor)
          Returns new GeographicDataSetAPI that represents the values in the minuend map minus the values in the subtrahend map.
static XYZ_DataSet multiply(XYZ_DataSet map1, XYZ_DataSet map2)
          Returns new GeographicDataSetAPI that represents the values in the two given maps multiplied together.
static XYZ_DataSet subtract(XYZ_DataSet minuend, XYZ_DataSet subtrahend)
          Returns new GeographicDataSetAPI that represents the values in the minuend map minus the values in the subtrahend map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XYZ_DataSetMath

public XYZ_DataSetMath()
Method Detail

add

public static XYZ_DataSet add(XYZ_DataSet map1,
                              XYZ_DataSet map2)
Returns new GeographicDataSetAPI that represents the values in the two given maps added together.

Parameters:
map1 -
map2 -
Returns:

subtract

public static XYZ_DataSet subtract(XYZ_DataSet minuend,
                                   XYZ_DataSet subtrahend)
Returns new GeographicDataSetAPI that represents the values in the minuend map minus the values in the subtrahend map.

Parameters:
map1 -
map2 -
Returns:

multiply

public static XYZ_DataSet multiply(XYZ_DataSet map1,
                                   XYZ_DataSet map2)
Returns new GeographicDataSetAPI that represents the values in the two given maps multiplied together.

Parameters:
map1 -
map2 -
Returns:

divide

public static XYZ_DataSet divide(XYZ_DataSet dividend,
                                 XYZ_DataSet divisor)
Returns new GeographicDataSetAPI that represents the values in the minuend map minus the values in the subtrahend map.

Parameters:
map1 -
map2 -
Returns: