public class GTSOpsHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
GTSOpsHelper.GTSBinaryOp |
static interface |
GTSOpsHelper.GTSUnaryOp |
| Constructor and Description |
|---|
GTSOpsHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyBinaryOp(GeoTimeSerie result,
GeoTimeSerie gts1,
GeoTimeSerie gts2,
GTSOpsHelper.GTSBinaryOp op) |
static void |
applyBinaryOp(GeoTimeSerie result,
GeoTimeSerie gts1,
GeoTimeSerie gts2,
GTSOpsHelper.GTSBinaryOp op,
boolean copyGts1Location)
Apply a binary operator to the values of two GTSs, resulting in a single GTS.
|
static void |
applyUnaryOp(GeoTimeSerie result,
GeoTimeSerie gts,
GTSOpsHelper.GTSUnaryOp op)
Apply a unary operator to the values of a GTS, resulting in another GTS.
|
static void |
handleBucketization(GeoTimeSerie result,
GeoTimeSerie gts1,
GeoTimeSerie gts2)
Set the bucketize parameters of the result GTS according to those of gts1 and gts2.
|
public static void applyUnaryOp(GeoTimeSerie result, GeoTimeSerie gts, GTSOpsHelper.GTSUnaryOp op)
result - The resulting GTS, for each tick of gts, result[tick]=op(gts[tick]).gts - The GTS from where to take the values from.op - The operator to apply to the values.public static void handleBucketization(GeoTimeSerie result, GeoTimeSerie gts1, GeoTimeSerie gts2)
result - The GTS whose bucketize parameters must be set (or not).gts1 - One of the two GTSs to get the bucketize parameters from.gts2 - One of the two GTSs to get the bucketize parameters from.public static void applyBinaryOp(GeoTimeSerie result, GeoTimeSerie gts1, GeoTimeSerie gts2, GTSOpsHelper.GTSBinaryOp op)
public static void applyBinaryOp(GeoTimeSerie result, GeoTimeSerie gts1, GeoTimeSerie gts2, GTSOpsHelper.GTSBinaryOp op, boolean copyGts1Location)
result - GTS containing all the results. ie for each common tick to gts1 and gts2, result[tick]=op(gts1[tick], gts2[tick]).gts1 - First GTS to take values from.gts2 - Second GTS to take values from.op - Operator which will compute the value to be put in result.copyGts1Location - Whether to copy the location and elevation of gts1 to result. If false, points in result have no location and no elevation.