类 ArrayMath
- java.lang.Object
-
- org.meteoinfo.ndarray.math.ArrayMath
-
public class ArrayMath extends java.lang.Object- 作者:
- wyq
-
-
字段概要
字段 修饰符和类型 字段 说明 static doublefill_value
-
构造器概要
构造器 构造器 说明 ArrayMath()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Arrayabs(Array a)Array absolutestatic Arrayacos(Array a)Arc cosine functionstatic Arrayadd(Array a, java.lang.Number b)Array addstatic Arrayadd(Array a, Array b)Array addstatic Arrayadd(Array a, Complex b)Array addstatic booleanall(Array a)Test whether all array element evaluates to True.static Arrayall(Array a, int axis)Test whether all array element along a given axis evaluates to True.static booleanany(Array a)Test whether any array element evaluates to True.static Arrayany(Array a, int axis)Test whether any array element along a given axis evaluates to True.static intargMax(Array a)Get the index of the maximum value into the flattened array.static ArrayargMax(Array a, int axis)Get the indices of the maximum values along an axis.static intargMin(Array a)Get the index of the minimum value into the flattened array.static ArrayargMin(Array a, int axis)Get the indices of the minimum values along an axis.static Arrayasin(Array a)Arc sine functionstatic java.util.List<java.lang.Object>asList(Array a)As number liststatic Arrayatan(Array a)Arc tangen functionstatic Arrayatan2(Array a, Array b)Arc tangen functionstatic doubleaveDouble(Array a)Average arraystatic doubleaveDouble(Array a, double missingValue)Average array skip missing valuestatic ArraybinCount(Array a)Count number of occurrences of each value in array of non-negative intsstatic ArraybinCount(Array a, Array weights)Count number of occurrences of each value in array of non-negative intsstatic ArraybitAnd(Array a, java.lang.Number b)Bit and operationstatic ArraybitAnd(Array a, Array b)Bit and operationstatic ArraybitInvert(Array a)Bit inversion ~ operationstatic ArraybitOr(Array a, java.lang.Number b)Bit or | operationstatic ArraybitOr(Array a, Array b)Bit or | operationstatic ArraybitXor(Array a, java.lang.Number b)Bit exclusive or ^ operationstatic ArraybitXor(Array a, Array b)Bit exclusive or | operationstatic int[]broadcast(Array a, Array b)Get broadcast shape from two arraysstatic intbroadcastCheck(Array a, Array b)Broadcast check for two arrays.static double[]cartesianToPolar(double x, double y)Convert cartesian to polar coordinatestatic Array[]cartesianToPolar(Array x, Array y)Convert cartesian to polar coordinatestatic Arraycdiff(Array data, int dimIdx)Performs a centered difference operation on a grid data along one dimension directionstatic Arraycdiff_bak(Array data, boolean isX)Performs a centered difference operation on a grid data in the x or y directionstatic Arrayceil(Array a)Return the ceiling of the input, element-wise.static booleancontainsNaN(Array a)Check if the array contains NaN valuestatic Arraycopy(Array a)Copy arraystatic Arraycos(Array a)Cosine functionstatic Arraycumsum(Array a, int axis)Return the cumulative sum of the elements along a given axis.static java.util.List<java.lang.Double>cumsum(Array a, java.util.List<Range> ranges)Compute cumulative sum value of an arraystatic Arraydiv(java.lang.Number b, Array a)Array dividestatic Arraydiv(Array a, java.lang.Number b)Array dividestatic Arraydiv(Array a, Array b)Array dividestatic Arraydiv(Array a, Complex b)Array dividestatic Arraydiv(Complex b, Array a)Array dividestatic Arraydot(Array a, Array b)Matrix multiplicationstatic java.lang.NumberdoubleToNumber(double v, DataType dt)Convert double to number by data typestatic Arrayequal(Array a, java.lang.Number b)Array equalstatic Arrayequal(Array a, java.lang.String b)Array equalstatic Arrayequal(Array a, Array b)Array equalstatic Arrayexp(Array a)Exponent functionstatic Arrayflip(Array a, int idx)Flip arraystatic Arrayflip(Array a, java.util.List<java.lang.Integer> idxs)Flip arraystatic Arrayfloor(Array a)Return the ceiling of the input, element-wise.static ArrayfloorDiv(java.lang.Number b, Array a)Array floor dividestatic ArrayfloorDiv(Array a, java.lang.Number b)Array floor dividestatic ArrayfloorDiv(Array a, Array b)Array modstatic Arrayfmax(Array x1, Array x2)Element-wise maximum of array elements, ignores NaNs.static Arrayfmin(Array x1, Array x2)Element-wise minimum of array elements, ignores NaNs.static DataTypegetDataType(java.lang.Object o)Get data typestatic doublegetMaximum(Array a)Get maximum valuestatic doublegetMaximum(Array a, double missingv)Get maximum valuestatic doublegetMinimum(Array a)Get minimum valuestatic doublegetMinimum(Array a, double missingv)Get minimum valuestatic floatgetR(java.util.List<java.lang.Number> xData, java.util.List<java.lang.Number> yData)Get correlation coefficient How well did the forecast values correspond to the observed values?static floatgetR(Array xData, Array yData)Get correlation coefficient How well did the forecast values correspond to the observed values?static ArraygreaterThan(Array a, java.lang.Number b)Array greater thanstatic ArraygreaterThan(Array a, Array b)Array greater thanstatic ArraygreaterThanOrEqual(Array a, java.lang.Number b)Array greater than or equalstatic ArraygreaterThanOrEqual(Array a, Array b)Array greater than or equalstatic Arrayhcurl(Array uData, Array vData, java.util.List<java.lang.Number> xx, java.util.List<java.lang.Number> yy)Calculates the vertical component of the curl (ie, vorticity)static Arrayhcurl(Array uData, Array vData, Array xx, Array yy)Calculates the vertical component of the curl (ie, vorticity)static Arrayhdivg(Array uData, Array vData, java.util.List<java.lang.Number> xx, java.util.List<java.lang.Number> yy)Calculates the horizontal divergence using finite differencingstatic Arrayhdivg(Array uData, Array vData, Array xx, Array yy)Calculates the horizontal divergence using finite differencingstatic ArrayinValues(Array a, java.util.List b)Return the array with the value of 1 when the input array element value in the list b, otherwise set value as 0.static booleanisClose(java.lang.Number a, java.lang.Number b, double rTol, double aTol)Returns a boolean where two number are equal within a tolerance.static booleanisClose(java.lang.Number a, java.lang.Number b, double rTol, double aTol, boolean equalNaN)Returns a boolean where two number are equal within a tolerance.static ArrayisClose(Array a, Array b, double rTol, double aTol)Returns a boolean array where two arrays are element-wise equal within a tolerance.static ArrayisClose(Array a, Array b, double rTol, double aTol, boolean equalNaN)Returns a boolean array where two arrays are element-wise equal within a tolerance.static booleanisComplex(Array a)Check if an array is complex data typestatic ArrayisFinite(Array a)Test element-wise for finiteness (not infinity or not Not a Number).static ArrayisInfinite(Array a)Test element-wise for positive or negative infinity.static booleanisNumeric(Array a)Check if an array is numeric arraystatic Arrayjoin(Array a, Array b, int dim)Join two arrays by a dimensionstatic double[]leastSquareTrend(java.util.List<java.lang.Number> xData, java.util.List<java.lang.Number> yData)Determine the least square trend equation - linear fittingstatic ArrayleftShift(Array a, java.lang.Number b)Bit left shift operationstatic ArrayleftShift(Array a, Array b)Bit left shift operationstatic ArraylessThan(Array a, java.lang.Number b)Array less thanstatic ArraylessThan(Array a, Array b)Array less thanstatic ArraylessThanOrEqual(Array a, java.lang.Number b)Array less than or equalstatic ArraylessThanOrEqual(Array a, Array b)Array less than or equalstatic double[]lineRegress(java.util.List<java.lang.Number> xData, java.util.List<java.lang.Number> yData)Linear regressstatic double[]lineRegress(Array xData, Array yData)Linear regressstatic Arraylog(Array a)Log functionstatic Arraylog10(Array a)Log10 functionstatic ArraylogicalNot(Array a)Logical notstatic Arraymagnitude(Array uData, Array vData)Take magnitude value from U/V grid datastatic Arraymaskin(Array a, Array m)Maskin functionstatic Arraymaskout(Array a, Array m)Maskout functionstatic Arraymaskout(Array a, Array m, java.lang.Number missingValue)Maskout functionstatic java.lang.Numbermax(Array a)Compute maximum value of an arraystatic Arraymax(Array a, int axis)Compute maximum value of an array along an axis (dimension)static doublemax(Array a, java.util.List<Range> ranges)Compute maximum value of an arraystatic doublemaximum(java.util.List<java.lang.Double> aDataList)Maximum functionstatic Arraymaximum(Array x1, Array x2)Element-wise maximum of array elements.static Arraymean(java.util.List<Array> alist)Compute the arithmetic mean arry from a list of arraysstatic doublemean(Array a)Compute mean value of an arraystatic Arraymean(Array a, int axis)Compute mean value of an array along an axis (dimension)static Arraymean(Array a, java.util.List<java.lang.Integer> axis)Compute mean value of an array along an axis (dimension)static doublemeanRange(Array a, java.util.List<Range> ranges)Compute mean value of an array by rangesstatic doublemedian(java.util.List<java.lang.Double> aDataList)Median funtionstatic doublemedian(Array a)Compute median value of an arraystatic Arraymedian(Array a, int axis)Compute median value of an array along an axis (dimension)static doublemedian(Array a, java.util.List<Range> ranges)Compute median value of an arraystatic java.lang.Numbermin(Array a)Compute minimum value of an arraystatic Arraymin(Array a, int axis)Compute minimum value of an array along an axis (dimension)static doublemin(Array a, java.util.List<Range> ranges)Compute minimum value of an arraystatic doubleminimum(java.util.List<java.lang.Double> aDataList)Minimum functionstatic Arrayminimum(Array x1, Array x2)Element-wise minimum of array elements.static voidmissingToNaN(Array a, java.lang.Number missingv)Set missing value to NaNstatic Arraymod(java.lang.Number b, Array a)Array modstatic Arraymod(Array a, java.lang.Number b)Array modstatic Arraymod(Array a, Array b)Array modstatic Arraymul(Array a, java.lang.Number b)Array multiplystatic Arraymul(Array a, Array b)Array mutiplystatic Arraymul(Array a, Complex b)Array multiplystatic ArraynotEqual(Array a, java.lang.Number b)Array not equalstatic ArraynotEqual(Array a, Array b)Array not equalstatic Arrayouter(Array a, Array b)Compute the outer product of two vectors.static voidplace(Array a, Array b, Array value)Change elements of an array based on conditional and input values.static double[]polarToCartesian(double B, double r)Convert poar to cartesian coordinatestatic Array[]polarToCartesian(Array B, Array r)Convert poar to cartesian coordinatestatic ArraypolyVal(java.util.List<java.lang.Number> p, Array x)Evaluate a polynomial at specific values.static Arraypow(java.lang.Number a, Array b)Array pow functionstatic Arraypow(Array a, java.lang.Number b)Array pow functionstatic Arraypow(Array a, Array b)Array pow functionstatic Arraypow(Array a, Complex b)Array pow functionstatic Arraypow(Complex b, Array a)Array pow functionstatic doubleprodDouble(Array a)Produce arraystatic doublequantile(java.util.List<java.lang.Double> aDataList, int aNum)Quantile functionstatic doublequantile(Array a, int aNum)Quantile functionstatic ArrayremoveNaN(Array a)Remove NaN values in an arraystatic Array[]removeNaN(Array... a)Remove NaN values in arraysstatic voidreplaceValue(Array a, java.lang.Object oValue, java.lang.Object value)Replace valuestatic ArrayrightShift(Array a, java.lang.Number b)Bit right shift operationstatic ArrayrightShift(Array a, Array b)Bit right shift operationstatic Arrayrolling_mean(Array x, int window, boolean center)Moving average functionstatic Arrayrot90(Array a, int k)Rotate an array by 90 degrees in counter-clockwise direction.static Arraysection(Array a, int[] origin, int[] size, int[] stride)Section arraystatic Arraysection(Array a, java.util.List<Range> ranges)Section arraystatic ArraysetSection(Array a, int[] origin, int[] shape, Array v)Set sectionstatic ArraysetSection(Array a, java.util.List<Range> ranges, java.lang.Number v)Set sectionstatic ArraysetSection(Array a, java.util.List<Range> ranges, java.lang.Object v)Set sectionstatic ArraysetSection(Array a, java.util.List<Range> ranges, Array v)Set sectionstatic ArraysetSection_List(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges, java.lang.Number v)Set sectionstatic ArraysetSection_List(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges, Array v)Set sectionstatic ArraysetSection_Mix(Array a, java.util.List<java.lang.Object> ranges, java.lang.Number v)Set sectionstatic ArraysetSection_Mix(Array a, java.util.List<java.lang.Object> ranges, Array v)Set sectionstatic ArraysetSection_Mix_Bak(Array a, java.util.List<java.lang.Object> ranges, java.lang.Number v)Set sectionstatic ArraysetSection_Mix_Bak(Array a, java.util.List<java.lang.Object> ranges, Array v)Set sectionstatic voidsetValue(Array a, Array b, java.lang.Number value)Set valuestatic voidsetValue(Array a, Array b, Array value)Set valuestatic Arraysign(Array x)Returns an element-wise indication of the sign of a number.static Arraysin(Array a)Sine functionstatic Arraysqrt(Array a)Sqrt functionstatic doublestd(Array a)Compute standard deviation value of an arraystatic doublestd(Array a, int ddof)Compute standard deviation value of an arraystatic Arraystd(Array a, int axis, int ddof)Compute standard deviation value of an array along an axis (dimension)static doublestd(Array a, java.util.List<Range> ranges, int ddof)Compute standard deviation value of an arraystatic Arraysub(java.lang.Number b, Array a)Array subtractstatic Arraysub(Array a, java.lang.Number b)Array subtractstatic Arraysub(Array a, Array b)Array subtractstatic Arraysub(Array a, Complex b)Array subtractstatic Arraysub(Complex b, Array a)Array subtractstatic Arraysum(java.util.List<Array> alist)Compute the sum arry from a list of arraysstatic java.lang.Numbersum(Array a)Summarize arraystatic doublesum(Array a, double missingValue)Summarize array skip missing valuestatic Arraysum(Array a, int axis)Compute sum value of an array along an axis (dimension)static doublesum(Array a, java.util.List<Range> ranges)Compute sum value of an arraystatic Arraytake(Array a, java.util.List<java.lang.Object> ranges)Take elements from an array along an axis.static Arraytake(Array a, Array condition)Extract 1D array by boolean arraystatic Arraytake(Array a, Array indices, java.lang.Integer axis)Take elements from an array along an axis.static ArraytakeValues(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges)Take elements from an array.static Arraytan(Array a)Tangent functionstatic ArraytoDegrees(Array a)Convert radians to degrees functionstatic ArraytoRadians(Array a)Convert radians to degrees functionstatic Arraytranspose(Array a, int dim1, int dim2)Transpose arraystatic doubletrapz(Array y, double dx)Integrate vector array using the composite trapezoidal rule.static Arraytrapz(Array a, double dx, int axis)Integrate vector array using the composite trapezoidal rule.static doubletrapz(Array y, double dx, java.util.List<Range> ranges)Integrate vector array using the composite trapezoidal rule.static doubletrapz(Array y, Array x)Integrate vector array using the composite trapezoidal rule.static Arraytrapz(Array a, Array x, int axis)Integrate vector array using the composite trapezoidal rule.static doubletrapz(Array y, Array x, java.util.List<Range> ranges)Integrate vector array using the composite trapezoidal rule.static shorttypeToNBytes(DataType dataType)Return the number of bytes per element for the given typecode.static doublevar(Array a, int ddof)Compute variance value of an arraystatic Arrayvar(Array a, int axis, int ddof)Compute variance value of an array along an axis (dimension)static doublevar(Array a, java.util.List<Range> ranges, int ddof)Compute variance value of an arraystatic doublevdot(Array a, Array b)Return the dot product of two vectors.
-
-
-
方法详细资料
-
getDataType
public static DataType getDataType(java.lang.Object o)
Get data type- 参数:
o- Object- 返回:
- Data type
-
typeToNBytes
public static short typeToNBytes(DataType dataType)
Return the number of bytes per element for the given typecode.- 参数:
dataType- Data type- 返回:
- Bytes number
-
isComplex
public static boolean isComplex(Array a)
Check if an array is complex data type- 参数:
a- The array- 返回:
- Complex data type or not
-
isNumeric
public static boolean isNumeric(Array a)
Check if an array is numeric array- 参数:
a- The array- 返回:
- Numeric or not
-
broadcastCheck
public static int broadcastCheck(Array a, Array b)
Broadcast check for two arrays.- 参数:
a- Array ab- Array b- 返回:
- Can broadcast (1), can not broadcast (-1), same dimensions (0)
-
broadcast
public static int[] broadcast(Array a, Array b)
Get broadcast shape from two arrays- 参数:
a- Array ab- Array b- 返回:
- Broadcast shape
-
add
public static Array add(Array a, Array b)
Array add- 参数:
a- Array ab- Array b- 返回:
- Added array
-
add
public static Array add(Array a, java.lang.Number b)
Array add- 参数:
a- Array ab- Number b- 返回:
- Added array
-
add
public static Array add(Array a, Complex b)
Array add- 参数:
a- Array ab- Complex number b- 返回:
- Added array
-
sub
public static Array sub(Array a, Array b)
Array subtract- 参数:
a- Array ab- Array b- 返回:
- Result array
-
sub
public static Array sub(Array a, java.lang.Number b)
Array subtract- 参数:
a- Array ab- Number b- 返回:
- Result array
-
sub
public static Array sub(Array a, Complex b)
Array subtract- 参数:
a- Array ab- Complex number b- 返回:
- Result array
-
sub
public static Array sub(java.lang.Number b, Array a)
Array subtract- 参数:
a- Array ab- Number b- 返回:
- Result array
-
sub
public static Array sub(Complex b, Array a)
Array subtract- 参数:
a- Array ab- Complex number b- 返回:
- Result array
-
mul
public static Array mul(Array a, Array b)
Array mutiply- 参数:
a- Array ab- Array b- 返回:
- Result array
-
mul
public static Array mul(Array a, java.lang.Number b)
Array multiply- 参数:
a- Array ab- Number b- 返回:
- Result array
-
mul
public static Array mul(Array a, Complex b)
Array multiply- 参数:
a- Array ab- Complex number b- 返回:
- Result array
-
div
public static Array div(Array a, Array b)
Array divide- 参数:
a- Array ab- Array b- 返回:
- Result array
-
div
public static Array div(Array a, java.lang.Number b)
Array divide- 参数:
a- Array ab- Number b- 返回:
- Result array
-
div
public static Array div(Array a, Complex b)
Array divide- 参数:
a- Array ab- Complex number b- 返回:
- Result array
-
div
public static Array div(java.lang.Number b, Array a)
Array divide- 参数:
a- Array ab- Number b- 返回:
- Result array
-
div
public static Array div(Complex b, Array a)
Array divide- 参数:
a- Array ab- Complex number b- 返回:
- Result array
-
mod
public static Array mod(Array a, Array b)
Array mod- 参数:
a- Array ab- Array b- 返回:
- Result array
-
mod
public static Array mod(Array a, java.lang.Number b)
Array mod- 参数:
a- Array ab- Number b- 返回:
- Result array
-
mod
public static Array mod(java.lang.Number b, Array a)
Array mod- 参数:
a- Array ab- Number b- 返回:
- Result array
-
floorDiv
public static Array floorDiv(Array a, Array b)
Array mod- 参数:
a- Array ab- Array b- 返回:
- Result array
-
floorDiv
public static Array floorDiv(Array a, java.lang.Number b)
Array floor divide- 参数:
a- Array ab- Number b- 返回:
- Result array
-
floorDiv
public static Array floorDiv(java.lang.Number b, Array a)
Array floor divide- 参数:
a- Array ab- Number b- 返回:
- Result array
-
pow
public static Array pow(Array a, java.lang.Number b)
Array pow function- 参数:
a- Array ab- Number b- 返回:
- Result array
-
pow
public static Array pow(Array a, Complex b)
Array pow function- 参数:
a- Array ab- Complex number b- 返回:
- Result array
-
pow
public static Array pow(java.lang.Number a, Array b)
Array pow function- 参数:
a- Number ab- Array b- 返回:
- Result array
-
pow
public static Array pow(Complex b, Array a)
Array pow function- 参数:
a- Array ab- Complex number b- 返回:
- Result array
-
pow
public static Array pow(Array a, Array b)
Array pow function- 参数:
a- Number ab- Array b- 返回:
- Result array
-
ceil
public static Array ceil(Array a)
Return the ceiling of the input, element-wise.- 参数:
a- Array a- 返回:
- Result array
-
floor
public static Array floor(Array a)
Return the ceiling of the input, element-wise.- 参数:
a- Array a- 返回:
- Result array
-
equal
public static Array equal(Array a, Array b)
Array equal- 参数:
a- Array ab- Array b- 返回:
- Result array
-
equal
public static Array equal(Array a, java.lang.Number b)
Array equal- 参数:
a- Array ab- Number b- 返回:
- Result array
-
equal
public static Array equal(Array a, java.lang.String b)
Array equal- 参数:
a- Array ab- Number b- 返回:
- Result array
-
isClose
public static boolean isClose(java.lang.Number a, java.lang.Number b, double rTol, double aTol)Returns a boolean where two number are equal within a tolerance.- 参数:
a- Number a.b- Number b.rTol- The relative tolerance parameteraTol- The absolute tolerance parameter- 返回:
- Result boolean
-
isClose
public static boolean isClose(java.lang.Number a, java.lang.Number b, double rTol, double aTol, boolean equalNaN)Returns a boolean where two number are equal within a tolerance.- 参数:
a- Number a.b- Number b.rTol- The relative tolerance parameteraTol- The absolute tolerance parameterequalNaN- Whether to compare NaN’s as equal- 返回:
- Result boolean
-
isClose
public static Array isClose(Array a, Array b, double rTol, double aTol)
Returns a boolean array where two arrays are element-wise equal within a tolerance.- 参数:
a- Input array a.b- Input array b.rTol- The relative tolerance parameteraTol- The absolute tolerance parameter- 返回:
- Result array
-
isClose
public static Array isClose(Array a, Array b, double rTol, double aTol, boolean equalNaN)
Returns a boolean array where two arrays are element-wise equal within a tolerance.- 参数:
a- Input array a.b- Input array b.rTol- The relative tolerance parameteraTol- The absolute tolerance parameterequalNaN- Whether to compare NaN’s as equal- 返回:
- Result array
-
isInfinite
public static Array isInfinite(Array a)
Test element-wise for positive or negative infinity.- 参数:
a- Array a- 返回:
- Result array
-
isFinite
public static Array isFinite(Array a)
Test element-wise for finiteness (not infinity or not Not a Number).- 参数:
a- Array a- 返回:
- Result array
-
lessThan
public static Array lessThan(Array a, Array b)
Array less than- 参数:
a- Array ab- Array b- 返回:
- Result array
-
lessThan
public static Array lessThan(Array a, java.lang.Number b)
Array less than- 参数:
a- Array ab- Number b- 返回:
- Result array
-
lessThanOrEqual
public static Array lessThanOrEqual(Array a, Array b)
Array less than or equal- 参数:
a- Array ab- Array b- 返回:
- Result array
-
lessThanOrEqual
public static Array lessThanOrEqual(Array a, java.lang.Number b)
Array less than or equal- 参数:
a- Array ab- Number b- 返回:
- Result array
-
greaterThan
public static Array greaterThan(Array a, Array b)
Array greater than- 参数:
a- Array ab- Array b- 返回:
- Result array
-
greaterThan
public static Array greaterThan(Array a, java.lang.Number b)
Array greater than- 参数:
a- Array ab- Number b- 返回:
- Result array
-
greaterThanOrEqual
public static Array greaterThanOrEqual(Array a, Array b)
Array greater than or equal- 参数:
a- Array ab- Array b- 返回:
- Result array
-
greaterThanOrEqual
public static Array greaterThanOrEqual(Array a, java.lang.Number b)
Array greater than or equal- 参数:
a- Array ab- Number b- 返回:
- Result array
-
notEqual
public static Array notEqual(Array a, Array b)
Array not equal- 参数:
a- Array ab- Array b- 返回:
- Result array
-
notEqual
public static Array notEqual(Array a, java.lang.Number b)
Array not equal- 参数:
a- Array ab- Number b- 返回:
- Result array
-
any
public static boolean any(Array a)
Test whether any array element evaluates to True.- 参数:
a- The array- 返回:
- Boolean
-
any
public static Array any(Array a, int axis) throws InvalidRangeException
Test whether any array element along a given axis evaluates to True.- 参数:
a- Array aaxis- Axis- 返回:
- Boolean array
- 抛出:
InvalidRangeException
-
all
public static boolean all(Array a)
Test whether all array element evaluates to True.- 参数:
a- The array- 返回:
- Boolean
-
all
public static Array all(Array a, int axis) throws InvalidRangeException
Test whether all array element along a given axis evaluates to True.- 参数:
a- Array aaxis- Axis- 返回:
- Boolean array
- 抛出:
InvalidRangeException
-
inValues
public static Array inValues(Array a, java.util.List b)
Return the array with the value of 1 when the input array element value in the list b, otherwise set value as 0.- 参数:
a- Array ab- List b- 返回:
- Result array
-
containsNaN
public static boolean containsNaN(Array a)
Check if the array contains NaN value- 参数:
a- Input array- 返回:
- Boolean
-
removeNaN
public static Array removeNaN(Array a)
Remove NaN values in an array- 参数:
a- The array- 返回:
- The array withou NaN values
-
removeNaN
public static Array[] removeNaN(Array... a)
Remove NaN values in arrays- 参数:
a- The arrays- 返回:
- The array withou NaN values
-
bitAnd
public static Array bitAnd(Array a, java.lang.Number b)
Bit and operation- 参数:
a- Array ab- Number b- 返回:
- Result array
-
bitAnd
public static Array bitAnd(Array a, Array b)
Bit and operation- 参数:
a- Array ab- Array b- 返回:
- Result array
-
bitOr
public static Array bitOr(Array a, java.lang.Number b)
Bit or | operation- 参数:
a- Array ab- Number b- 返回:
- Result array
-
bitOr
public static Array bitOr(Array a, Array b)
Bit or | operation- 参数:
a- Array ab- Array b- 返回:
- Result array
-
bitXor
public static Array bitXor(Array a, java.lang.Number b)
Bit exclusive or ^ operation- 参数:
a- Array ab- Number b- 返回:
- Result array
-
bitXor
public static Array bitXor(Array a, Array b)
Bit exclusive or | operation- 参数:
a- Array ab- Array b- 返回:
- Result array
-
bitInvert
public static Array bitInvert(Array a)
Bit inversion ~ operation- 参数:
a- Array a- 返回:
- Result array
-
leftShift
public static Array leftShift(Array a, java.lang.Number b)
Bit left shift operation- 参数:
a- Array ab- Number b- 返回:
- Result array
-
leftShift
public static Array leftShift(Array a, Array b)
Bit left shift operation- 参数:
a- Array ab- Array b- 返回:
- Result array
-
rightShift
public static Array rightShift(Array a, java.lang.Number b)
Bit right shift operation- 参数:
a- Array ab- Number b- 返回:
- Result array
-
rightShift
public static Array rightShift(Array a, Array b)
Bit right shift operation- 参数:
a- Array ab- Array b- 返回:
- Result array
-
trapz
public static double trapz(Array y, double dx)
Integrate vector array using the composite trapezoidal rule.- 参数:
y- Vecotr arraydx- Spacing between all y elements- 返回:
- Definite integral as approximated by trapezoidal rule
-
trapz
public static double trapz(Array y, double dx, java.util.List<Range> ranges) throws InvalidRangeException
Integrate vector array using the composite trapezoidal rule.- 参数:
y- Vecotr arraydx- Spacing between all y elementsranges-- 返回:
- Definite integral as approximated by trapezoidal rule
- 抛出:
InvalidRangeException
-
trapz
public static double trapz(Array y, Array x)
Integrate vector array using the composite trapezoidal rule.- 参数:
y- Vecotr arrayx- Spacing array between all y elements- 返回:
- Definite integral as approximated by trapezoidal rule
-
trapz
public static double trapz(Array y, Array x, java.util.List<Range> ranges) throws InvalidRangeException
Integrate vector array using the composite trapezoidal rule.- 参数:
y- Vecotr arrayx- Spacing array between all y elementsranges- Ranges- 返回:
- Definite integral as approximated by trapezoidal rule
- 抛出:
InvalidRangeException
-
trapz
public static Array trapz(Array a, double dx, int axis) throws InvalidRangeException
Integrate vector array using the composite trapezoidal rule.- 参数:
a- Array adx-axis- Axis- 返回:
- Mean value array
- 抛出:
InvalidRangeException
-
trapz
public static Array trapz(Array a, Array x, int axis) throws InvalidRangeException
Integrate vector array using the composite trapezoidal rule.- 参数:
a- Array ax- Array xaxis- Axis- 返回:
- Mean value array
- 抛出:
InvalidRangeException
-
sign
public static Array sign(Array x)
Returns an element-wise indication of the sign of a number. The sign function returns -1 if x less than 0, 0 if x==0, 1 if x bigger than 0. nan is returned for nan inputs.- 参数:
x- Input array- 返回:
- The sign of x array
-
dot
public static Array dot(Array a, Array b)
Matrix multiplication- 参数:
a- Array ab- Array b- 返回:
- Result array
-
vdot
public static double vdot(Array a, Array b)
Return the dot product of two vectors.- 参数:
a- Vector ab- Vector b- 返回:
- Result
-
outer
public static Array outer(Array a, Array b)
Compute the outer product of two vectors.- 参数:
a- Vector ab- Vector b- 返回:
- The outer product
-
toDegrees
public static Array toDegrees(Array a)
Convert radians to degrees function- 参数:
a- Array a- 返回:
- Result array
-
toRadians
public static Array toRadians(Array a)
Convert radians to degrees function- 参数:
a- Array a- 返回:
- Result array
-
atan2
public static Array atan2(Array a, Array b)
Arc tangen function- 参数:
a- Array ab- Array b- 返回:
- Result array
-
cartesianToPolar
public static Array[] cartesianToPolar(Array x, Array y)
Convert cartesian to polar coordinate- 参数:
x- X arrayy- Y array- 返回:
- Angle and radius
-
polarToCartesian
public static Array[] polarToCartesian(Array B, Array r)
Convert poar to cartesian coordinate- 参数:
r- RadiusB- Angle in radians- 返回:
- X and y in cartesian coordinate
-
cartesianToPolar
public static double[] cartesianToPolar(double x, double y)Convert cartesian to polar coordinate- 参数:
x- Xy- Y- 返回:
- Angle and radius
-
polarToCartesian
public static double[] polarToCartesian(double B, double r)Convert poar to cartesian coordinate- 参数:
r- RadiusB- Angle in radians- 返回:
- X and y in cartesian coordinate
-
section
public static Array section(Array a, int[] origin, int[] size, int[] stride) throws InvalidRangeException
Section array- 参数:
a- Array aorigin- Origin arraysize- Size arraystride- Stride array- 返回:
- Result array
- 抛出:
InvalidRangeException
-
section
public static Array section(Array a, java.util.List<Range> ranges) throws InvalidRangeException
Section array- 参数:
a- Array aranges- Ranges- 返回:
- Result array
- 抛出:
InvalidRangeException
-
take
public static Array take(Array a, Array condition)
Extract 1D array by boolean array- 参数:
a- The data arraycondition- The boolean array- 返回:
- Extracted array
-
take
public static Array take(Array a, Array indices, java.lang.Integer axis) throws InvalidRangeException
Take elements from an array along an axis.- 参数:
a- The arrayindices- The indices of the values to extract.axis- The axis over which to select values.- 返回:
- The returned array has the same type as a.
- 抛出:
InvalidRangeException
-
take
public static Array take(Array a, java.util.List<java.lang.Object> ranges)
Take elements from an array along an axis.- 参数:
a- The arrayranges- The indices of the values to extract.- 返回:
- The returned array has the same type as a.
-
takeValues
public static Array takeValues(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges)
Take elements from an array.- 参数:
a- The arrayranges- The indices of the values to extract.- 返回:
- The returned array has the same type as a.
-
setSection
public static Array setSection(Array a, java.util.List<Range> ranges, java.lang.Number v) throws InvalidRangeException
Set section- 参数:
a- Array aranges- Rangesv- Number value- 返回:
- Result array
- 抛出:
InvalidRangeException
-
setSection
public static Array setSection(Array a, java.util.List<Range> ranges, java.lang.Object v) throws InvalidRangeException
Set section- 参数:
a- Array aranges- Rangesv- Object value- 返回:
- Result array
- 抛出:
InvalidRangeException
-
setSection
public static Array setSection(Array a, java.util.List<Range> ranges, Array v) throws InvalidRangeException
Set section- 参数:
a- Array aranges- Rangesv- Array value- 返回:
- Result array
- 抛出:
InvalidRangeException
-
setSection
public static Array setSection(Array a, int[] origin, int[] shape, Array v) throws InvalidRangeException
Set section- 参数:
a- Array aorigin- Originshape- Shapev- Array value- 返回:
- Result array
- 抛出:
InvalidRangeException
-
setSection_Mix
public static Array setSection_Mix(Array a, java.util.List<java.lang.Object> ranges, java.lang.Number v)
Set section- 参数:
a- Array aranges- Rangesv- Number value- 返回:
- Result array
-
setSection_Mix_Bak
public static Array setSection_Mix_Bak(Array a, java.util.List<java.lang.Object> ranges, java.lang.Number v)
Set section- 参数:
a- Array aranges- Rangesv- Number value- 返回:
- Result array
-
setSection_Mix
public static Array setSection_Mix(Array a, java.util.List<java.lang.Object> ranges, Array v)
Set section- 参数:
a- Array aranges- Rangesv- Array value- 返回:
- Result array
-
setSection_Mix_Bak
public static Array setSection_Mix_Bak(Array a, java.util.List<java.lang.Object> ranges, Array v)
Set section- 参数:
a- Array aranges- Rangesv- Array value- 返回:
- Result array
-
setSection_List
public static Array setSection_List(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges, java.lang.Number v)
Set section- 参数:
a- Array aranges- Rangesv- Number value- 返回:
- Result array
-
setSection_List
public static Array setSection_List(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges, Array v)
Set section- 参数:
a- Array aranges- Rangesv- Array value- 返回:
- Result array
-
flip
public static Array flip(Array a, java.util.List<java.lang.Integer> idxs)
Flip array- 参数:
a- Array aidxs- Dimension index list- 返回:
- Result array
-
flip
public static Array flip(Array a, int idx)
Flip array- 参数:
a- Array aidx- Dimension idex- 返回:
- Result array
-
transpose
public static Array transpose(Array a, int dim1, int dim2)
Transpose array- 参数:
a- Array adim1- Dimension index 1dim2- Dimension index 2- 返回:
- Result array
-
rot90
public static Array rot90(Array a, int k)
Rotate an array by 90 degrees in counter-clockwise direction.- 参数:
a- The arrayk- Rotate times- 返回:
- Rotated array
-
join
public static Array join(Array a, Array b, int dim)
Join two arrays by a dimension- 参数:
a- Array ab- Array bdim- Dimension for join- 返回:
- Joined array
-
getMinimum
public static double getMinimum(Array a)
Get minimum value- 参数:
a- Array a- 返回:
- Minimum value
-
getMaximum
public static double getMaximum(Array a)
Get maximum value- 参数:
a- Array a- 返回:
- Maximum value
-
getMinimum
public static double getMinimum(Array a, double missingv)
Get minimum value- 参数:
a- Array amissingv- Missing value- 返回:
- Minimum value
-
getMaximum
public static double getMaximum(Array a, double missingv)
Get maximum value- 参数:
a- Array amissingv- Missing value- 返回:
- Maximum value
-
min
public static java.lang.Number min(Array a)
Compute minimum value of an array- 参数:
a- Array a- 返回:
- Minimum value
-
min
public static Array min(Array a, int axis) throws InvalidRangeException
Compute minimum value of an array along an axis (dimension)- 参数:
a- Array aaxis- Axis- 返回:
- Minimum value array
- 抛出:
InvalidRangeException
-
min
public static double min(Array a, java.util.List<Range> ranges) throws InvalidRangeException
Compute minimum value of an array- 参数:
a- Array aranges- Range list- 返回:
- Minimum value
- 抛出:
InvalidRangeException
-
max
public static java.lang.Number max(Array a)
Compute maximum value of an array- 参数:
a- Array a- 返回:
- Maximum value
-
max
public static Array max(Array a, int axis) throws InvalidRangeException
Compute maximum value of an array along an axis (dimension)- 参数:
a- Array aaxis- Axis- 返回:
- Maximum value array
- 抛出:
InvalidRangeException
-
max
public static double max(Array a, java.util.List<Range> ranges) throws InvalidRangeException
Compute maximum value of an array- 参数:
a- Array aranges- Range list- 返回:
- Maximum value
- 抛出:
InvalidRangeException
-
sum
public static Array sum(Array a, int axis) throws InvalidRangeException
Compute sum value of an array along an axis (dimension)- 参数:
a- Array aaxis- Axis- 返回:
- Sum value array
- 抛出:
InvalidRangeException
-
sum
public static double sum(Array a, java.util.List<Range> ranges) throws InvalidRangeException
Compute sum value of an array- 参数:
a- Array aranges- Range list- 返回:
- Sum value
- 抛出:
InvalidRangeException
-
sum
public static Array sum(java.util.List<Array> alist)
Compute the sum arry from a list of arrays- 参数:
alist- list of arrays- 返回:
- Sum array
-
sum
public static java.lang.Number sum(Array a)
Summarize array- 参数:
a- Array a- 返回:
- Summarize value
-
sum
public static double sum(Array a, double missingValue)
Summarize array skip missing value- 参数:
a- Array amissingValue- Missing value- 返回:
- Summarize value
-
cumsum
public static Array cumsum(Array a, int axis) throws InvalidRangeException
Return the cumulative sum of the elements along a given axis.- 参数:
a- Array aaxis- Axis- 返回:
- Sum value array
- 抛出:
InvalidRangeException
-
cumsum
public static java.util.List<java.lang.Double> cumsum(Array a, java.util.List<Range> ranges) throws InvalidRangeException
Compute cumulative sum value of an array- 参数:
a- Array aranges- Range list- 返回:
- Sum value
- 抛出:
InvalidRangeException
-
binCount
public static Array binCount(Array a)
Count number of occurrences of each value in array of non-negative ints- 参数:
a- The array- 返回:
- The result of binning the input array
-
binCount
public static Array binCount(Array a, Array weights)
Count number of occurrences of each value in array of non-negative ints- 参数:
a- The arrayweights- The weights- 返回:
- The result of binning the input array
-
prodDouble
public static double prodDouble(Array a)
Produce array- 参数:
a- Array a- 返回:
- Produce value
-
aveDouble
public static double aveDouble(Array a)
Average array- 参数:
a- Array a- 返回:
- Average value
-
aveDouble
public static double aveDouble(Array a, double missingValue)
Average array skip missing value- 参数:
a- Array amissingValue- Missing value- 返回:
- Average value
-
argMin
public static int argMin(Array a) throws InvalidRangeException
Get the index of the minimum value into the flattened array.- 参数:
a- Array a- 返回:
- Minimum value index
- 抛出:
InvalidRangeException
-
argMin
public static Array argMin(Array a, int axis) throws InvalidRangeException
Get the indices of the minimum values along an axis.- 参数:
a- Array aaxis- Axis- 返回:
- Indices
- 抛出:
InvalidRangeException
-
argMax
public static int argMax(Array a) throws InvalidRangeException
Get the index of the maximum value into the flattened array.- 参数:
a- Array a- 返回:
- Maximum value index
- 抛出:
InvalidRangeException
-
argMax
public static Array argMax(Array a, int axis) throws InvalidRangeException
Get the indices of the maximum values along an axis.- 参数:
a- Array aaxis- Axis- 返回:
- Indices
- 抛出:
InvalidRangeException
-
mean
public static Array mean(Array a, int axis) throws InvalidRangeException
Compute mean value of an array along an axis (dimension)- 参数:
a- Array aaxis- Axis- 返回:
- Mean value array
- 抛出:
InvalidRangeException
-
mean
public static Array mean(Array a, java.util.List<java.lang.Integer> axis) throws InvalidRangeException
Compute mean value of an array along an axis (dimension)- 参数:
a- Array aaxis- Axis- 返回:
- Mean value array
- 抛出:
InvalidRangeException
-
mean
public static double mean(Array a)
Compute mean value of an array- 参数:
a- Array a- 返回:
- Mean value
-
mean
public static Array mean(java.util.List<Array> alist)
Compute the arithmetic mean arry from a list of arrays- 参数:
alist- list of arrays- 返回:
- Mean array
-
meanRange
public static double meanRange(Array a, java.util.List<Range> ranges) throws InvalidRangeException
Compute mean value of an array by ranges- 参数:
a- Array aranges- Range list- 返回:
- Mean value
- 抛出:
InvalidRangeException
-
std
public static Array std(Array a, int axis, int ddof) throws InvalidRangeException
Compute standard deviation value of an array along an axis (dimension)- 参数:
a- Array aaxis- Axisddof- Means delta degree of freedom- 返回:
- Standard deviation value array
- 抛出:
InvalidRangeException
-
std
public static double std(Array a, java.util.List<Range> ranges, int ddof) throws InvalidRangeException
Compute standard deviation value of an array- 参数:
a- Array aranges- Range listddof- Means delta degree of freedom- 返回:
- Standard deviation value
- 抛出:
InvalidRangeException
-
std
public static double std(Array a) throws InvalidRangeException
Compute standard deviation value of an array- 参数:
a- Array a- 返回:
- Standard deviation value
- 抛出:
InvalidRangeException
-
std
public static double std(Array a, int ddof) throws InvalidRangeException
Compute standard deviation value of an array- 参数:
a- Array addof- Means delta degree of freedom- 返回:
- Standard deviation value
- 抛出:
InvalidRangeException
-
var
public static double var(Array a, int ddof) throws InvalidRangeException
Compute variance value of an array- 参数:
a- Array addof- Means delta degree of freedom- 返回:
- Variance value
- 抛出:
InvalidRangeException
-
var
public static Array var(Array a, int axis, int ddof) throws InvalidRangeException
Compute variance value of an array along an axis (dimension)- 参数:
a- Array aaxis- Axisddof- Means delta degree of freedom- 返回:
- Variance value array
- 抛出:
InvalidRangeException
-
var
public static double var(Array a, java.util.List<Range> ranges, int ddof) throws InvalidRangeException
Compute variance value of an array- 参数:
a- Array aranges- Range listddof- Means delta degree of freedom- 返回:
- Variance value
- 抛出:
InvalidRangeException
-
median
public static Array median(Array a, int axis) throws InvalidRangeException
Compute median value of an array along an axis (dimension)- 参数:
a- Array aaxis- Axis- 返回:
- Median value array
- 抛出:
InvalidRangeException
-
median
public static double median(java.util.List<java.lang.Double> aDataList)
Median funtion- 参数:
aDataList- The data list- 返回:
- Median
-
minimum
public static double minimum(java.util.List<java.lang.Double> aDataList)
Minimum function- 参数:
aDataList- The data list- 返回:
- Minimum
-
maximum
public static double maximum(java.util.List<java.lang.Double> aDataList)
Maximum function- 参数:
aDataList- The data list- 返回:
- Maximum
-
quantile
public static double quantile(java.util.List<java.lang.Double> aDataList, int aNum)Quantile function- 参数:
aDataList- The data listaNum- Quantile index- 返回:
- Quantile value
-
quantile
public static double quantile(Array a, int aNum)
Quantile function- 参数:
a- The data arrayaNum- Quantile index- 返回:
- Quantile value
-
median
public static double median(Array a, java.util.List<Range> ranges) throws InvalidRangeException
Compute median value of an array- 参数:
a- Array aranges- Range list- 返回:
- Median value
- 抛出:
InvalidRangeException
-
median
public static double median(Array a)
Compute median value of an array- 参数:
a- Array a- 返回:
- Median value
-
maximum
public static Array maximum(Array x1, Array x2)
Element-wise maximum of array elements.- 参数:
x1- Array 1x2- Array 2- 返回:
- The maximum of x1 and x2, element-wise.
-
fmax
public static Array fmax(Array x1, Array x2)
Element-wise maximum of array elements, ignores NaNs.- 参数:
x1- Array 1x2- Array 2- 返回:
- The maximum of x1 and x2, element-wise.
-
minimum
public static Array minimum(Array x1, Array x2)
Element-wise minimum of array elements.- 参数:
x1- Array 1x2- Array 2- 返回:
- The minimum of x1 and x2, element-wise.
-
fmin
public static Array fmin(Array x1, Array x2)
Element-wise minimum of array elements, ignores NaNs.- 参数:
x1- Array 1x2- Array 2- 返回:
- The minimum of x1 and x2, element-wise.
-
rolling_mean
public static Array rolling_mean(Array x, int window, boolean center)
Moving average function- 参数:
x- The data arraywindow- Size of moving windowcenter- Set the data in center moving window- 返回:
- Moving averaged array
-
missingToNaN
public static void missingToNaN(Array a, java.lang.Number missingv)
Set missing value to NaN- 参数:
a- Array amissingv- Missing value
-
setValue
public static void setValue(Array a, Array b, java.lang.Number value)
Set value- 参数:
a- Array ab- Array b - 0/1 datavalue- Value
-
setValue
public static void setValue(Array a, Array b, Array value)
Set value- 参数:
a- Array ab- Array b - 0/1 datavalue- Value array
-
place
public static void place(Array a, Array b, Array value)
Change elements of an array based on conditional and input values.- 参数:
a- Array ab- Array b - 0/1 datavalue- Value array
-
replaceValue
public static void replaceValue(Array a, java.lang.Object oValue, java.lang.Object value)
Replace value- 参数:
a- Array aoValue- Replaced valuevalue- New value
-
asList
public static java.util.List<java.lang.Object> asList(Array a)
As number list- 参数:
a- Array a- 返回:
- Result number list
-
doubleToNumber
public static java.lang.Number doubleToNumber(double v, DataType dt)Convert double to number by data type- 参数:
v- Double valuedt- Data type- 返回:
- Number
-
maskout
public static Array maskout(Array a, Array m, java.lang.Number missingValue)
Maskout function- 参数:
a- Array am- Array maskmissingValue- Missing value- 返回:
- Result array
-
maskout
public static Array maskout(Array a, Array m)
Maskout function- 参数:
a- Array am- Array mask- 返回:
- Result array
-
maskin
public static Array maskin(Array a, Array m)
Maskin function- 参数:
a- Array am- Array mask- 返回:
- Result array
-
getR
public static float getR(java.util.List<java.lang.Number> xData, java.util.List<java.lang.Number> yData)Get correlation coefficient How well did the forecast values correspond to the observed values? Range: -1 to 1. Perfect score: 1.- 参数:
xData- X data arrayyData- Y data array- 返回:
- Correlation coefficent
-
getR
public static float getR(Array xData, Array yData)
Get correlation coefficient How well did the forecast values correspond to the observed values? Range: -1 to 1. Perfect score: 1.- 参数:
xData- X data arrayyData- Y data array- 返回:
- Correlation coefficent
-
leastSquareTrend
public static double[] leastSquareTrend(java.util.List<java.lang.Number> xData, java.util.List<java.lang.Number> yData)Determine the least square trend equation - linear fitting- 参数:
xData- X data arrayyData- Y data array- 返回:
- Result array - y intercept and slope
-
lineRegress
public static double[] lineRegress(java.util.List<java.lang.Number> xData, java.util.List<java.lang.Number> yData)Linear regress- 参数:
xData- X data arrayyData- Y data array- 返回:
- Result array - y intercept, slope and correlation coefficent
-
lineRegress
public static double[] lineRegress(Array xData, Array yData)
Linear regress- 参数:
xData- X data arrayyData- Y data array- 返回:
- Slope, intercept, correlation coefficent, two-sided p-value, the standard error of the estimate for the slope, valid data number
-
polyVal
public static Array polyVal(java.util.List<java.lang.Number> p, Array x)
Evaluate a polynomial at specific values. If p is of length N, this function returns the value: p[0]*x**(N-1) + p[1]*x**(N-2) + ... + p[N-2]*x + p[N-1]- 参数:
p- array_like or poly1d objectx- array_like or poly1d object- 返回:
- ndarray or poly1d
-
cdiff
public static Array cdiff(Array data, int dimIdx)
Performs a centered difference operation on a grid data along one dimension direction- 参数:
data- The grid datadimIdx- Direction dimension index- 返回:
- Result grid data
-
cdiff_bak
public static Array cdiff_bak(Array data, boolean isX)
Performs a centered difference operation on a grid data in the x or y direction- 参数:
data- The grid dataisX- If is x direction- 返回:
- Result grid data
-
hcurl
public static Array hcurl(Array uData, Array vData, java.util.List<java.lang.Number> xx, java.util.List<java.lang.Number> yy)
Calculates the vertical component of the curl (ie, vorticity)- 参数:
uData- U componentvData- V componentxx- X dimension valueyy- Y dimension value- 返回:
- Curl
-
hcurl
public static Array hcurl(Array uData, Array vData, Array xx, Array yy)
Calculates the vertical component of the curl (ie, vorticity)- 参数:
uData- U componentvData- V componentxx- X dimension valueyy- Y dimension value- 返回:
- Curl
-
hdivg
public static Array hdivg(Array uData, Array vData, java.util.List<java.lang.Number> xx, java.util.List<java.lang.Number> yy)
Calculates the horizontal divergence using finite differencing- 参数:
uData- U componentvData- V componentxx- X dimension valueyy- Y dimension value- 返回:
- Divergence
-
hdivg
public static Array hdivg(Array uData, Array vData, Array xx, Array yy)
Calculates the horizontal divergence using finite differencing- 参数:
uData- U componentvData- V componentxx- X dimension valueyy- Y dimension value- 返回:
- Divergence
-
-