public abstract class DataMath extends Object
| 构造器 | 说明 |
|---|---|
DataMath() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static Object |
abs(Object a) |
Take abstract value
|
static Object |
acos(Object a) |
Take anti-cosine value
|
static Object |
add(Object a,
Object b) |
Tack add operator of two objects
|
static Object |
asin(Object a) |
Take anti-sine value
|
static Object |
atan(Object a) |
Take anti-tangent value
|
static GridData |
average(List<GridData> gDataList) |
Calculate average grid data from grid data list
|
static GridData |
average(List<GridData> gDataList,
boolean ignoreUndef) |
Calculate average grid data from grid data list
|
static GridData |
average(List<GridData> gDataList,
boolean ignoreUndef,
int validNum) |
Calculate average grid data from grid data list
|
static GridData |
cdiff(GridData aData,
boolean isX) |
Performs a centered difference operation on a grid data in the x or y
direction
|
static Object |
cos(Object a) |
Take cosine value
|
static Object |
div(Object a,
Object b) |
Take divide operator of two objects
|
static GridData |
div_1(double value,
GridData gridData) |
Divide operation between a double value and a grid data
|
static StationData |
div_1(double value,
StationData stData) |
Divide operator between a double value and a station data
|
static Object |
exp(Object a) |
Take e base power value
|
static Object[] |
gauss2Lats(int nlat) |
This function provides latitudes on a Gaussian grid from the number of
latitude lines
|
static double[] |
getDSFromUV(double U,
double V) |
Get wind direction/speed from U/V
|
static GridData[] |
getDSFromUV(GridData uData,
GridData vData) |
Get wind direction/speed grid data from wind U/V grid data
|
static StationData[] |
getDSFromUV(StationData uData,
StationData vData) |
Get wind direction/speed station data from wind U/V station data
|
static double[] |
getEndPoint(double x,
double y,
double angle,
double len) |
Get end point by start point, angle and length
|
static float |
getR(List<Double> xData,
List<Double> yData) |
Get correlation coefficient How well did the forecast values correspond
to the observed values?
|
static float |
getR(ColumnData xcData,
ColumnData ycData) |
Get correlation coefficient How well did the forecast values correspond
to the observed values?
|
static double[] |
getUVFromDS(double windDir,
double windSpeed) |
Get wind U/V from wind direction/speed
|
static GridData[] |
getUVFromDS(GridData windDirData,
GridData windSpeedData) |
Get wind U/V grid data from wind direction/speed grid data
|
static StationData[] |
getUVFromDS(StationData windDirData,
StationData windSpeedData) |
Get wind U/V station data from wind direction/speed station data
|
static GridData |
hcurl(GridData uData,
GridData vData) |
Calculates the vertical component of the curl (ie, vorticity)
|
static GridData |
hdivg(GridData uData,
GridData vData) |
Calculates the horizontal divergence using finite differencing
|
static double[] |
leastSquareTrend(double[] xData,
double[] yData) |
Determine the least square trend equation - linear fitting
|
static GridData |
leastSquareTrend(List<GridData> dataList,
double[] xData) |
Determine the least square trend equation - linear fitting
|
static Object |
log(Object a) |
Take logrithm value
|
static Object |
log10(Object a) |
Take 10 base logrithm value
|
static GridData |
magnitude(GridData uData,
GridData vData) |
Take magnitude value from U/V grid data
|
static StationData |
magnitude(StationData uData,
StationData vData) |
Take magnitude value from U/V station data
|
static double[] |
mann_Kendall_Trend(double[] ts) |
Mann-Kendall trend statistics
|
static double[] |
mann_Kendall_Trend(List<Double> ts) |
Mann-Kendall trend statistics
|
static double[] |
mann_Kendall_Trend_1(double[] ts) |
Mann-Kendall trend statistics
|
static StationData |
mean(List<StationData> datalist) |
Compute the arithmetic mean station data
|
static Object |
mul(Object a,
Object b) |
Take multiply operator of two objects
|
static Object |
pow(Object a,
double p) |
Take power value
|
static Object |
sin(Object a) |
Take sine value
|
static Object |
sqrt(Object a) |
Take squre root value
|
static GridData |
sub(double value,
GridData gridData) |
Subtract operation between a double value and a grid data
|
static StationData |
sub(double value,
StationData stData) |
Subtract operator between a double value and a station data
|
static Object |
sub(Object a,
Object b) |
Take subtract operator of two objects
|
static double |
sum(double[] values) |
Summary the value array
|
static Object |
tan(Object a) |
Take tangent value
|
public static Object add(Object a, Object b)
a - Object ab - Object bpublic static Object sub(Object a, Object b)
a - Object ab - Object bpublic static GridData sub(double value, GridData gridData)
value - Double valuegridData - Grid datapublic static StationData sub(double value, StationData stData)
value - The valuestData - Station datapublic static Object mul(Object a, Object b)
a - Object ab - Object bpublic static Object div(Object a, Object b)
a - Object ab - Object bpublic static GridData div_1(double value, GridData gridData)
value - Double valuegridData - Grid datapublic static StationData div_1(double value, StationData stData)
value - The valuestData - Station datapublic static double[] getUVFromDS(double windDir,
double windSpeed)
windDir - The wind directionwindSpeed - The wind speedpublic static GridData[] getUVFromDS(GridData windDirData, GridData windSpeedData)
windDirData - Wind directoin grid datawindSpeedData - Wind speed grid datapublic static StationData[] getUVFromDS(StationData windDirData, StationData windSpeedData)
windDirData - Wind direction station datawindSpeedData - Wind speed station datapublic static double[] getDSFromUV(double U,
double V)
U - The U valueV - The V valuepublic static GridData[] getDSFromUV(GridData uData, GridData vData)
uData - U grid datavData - V grid datapublic static StationData[] getDSFromUV(StationData uData, StationData vData)
uData - U station datavData - V station datapublic static double[] getEndPoint(double x,
double y,
double angle,
double len)
x - Start point xy - Start point yangle - Anglelen - Lengthpublic static double sum(double[] values)
values - Valuespublic static Object atan(Object a)
a - Object apublic static Object pow(Object a, double p)
a - Object ap - Power valuepublic static Object log10(Object a)
a - Object apublic static GridData average(List<GridData> gDataList)
gDataList - Grid data listpublic static GridData average(List<GridData> gDataList, boolean ignoreUndef)
gDataList - Grid data listignoreUndef - If ignore missing datapublic static GridData average(List<GridData> gDataList, boolean ignoreUndef, int validNum)
gDataList - Grid data listignoreUndef - If ignore missing valuevalidNum - Valid numberpublic static StationData mean(List<StationData> datalist)
datalist - station data listpublic static double[] leastSquareTrend(double[] xData,
double[] yData)
xData - X data arrayyData - Y data arraypublic static GridData leastSquareTrend(List<GridData> dataList, double[] xData)
dataList - Grid data listxData - X data arraypublic static float getR(List<Double> xData, List<Double> yData)
xData - X data arrayyData - Y data arraypublic static float getR(ColumnData xcData, ColumnData ycData)
xcData - X data arrayycData - Y data arraypublic static double[] mann_Kendall_Trend(List<Double> ts)
ts - Input data listpublic static double[] mann_Kendall_Trend(double[] ts)
ts - Input data arraypublic static double[] mann_Kendall_Trend_1(double[] ts)
ts - Input data arraypublic static GridData magnitude(GridData uData, GridData vData)
uData - U grid datavData - V grid datapublic static StationData magnitude(StationData uData, StationData vData)
uData - U station datavData - V station datapublic static GridData cdiff(GridData aData, boolean isX)
aData - The grid dataisX - If is x directionpublic static GridData hcurl(GridData uData, GridData vData)
uData - U componentvData - V componentpublic static GridData hdivg(GridData uData, GridData vData)
uData - U componentvData - V componentpublic static Object[] gauss2Lats(int nlat)
nlat - the number of latitude linesCopyright © 2019. All rights reserved.