类的使用
org.meteoinfo.ndarray.Array
-
使用Array的程序包 程序包 说明 org.meteoinfo.ndarray Multidimensional arrays of primitives and objects with data stored in memory.org.meteoinfo.ndarray.math -
-
org.meteoinfo.ndarray中Array的使用
org.meteoinfo.ndarray中Array的子类 修饰符和类型 类 说明 classArrayBooleanConcrete implementation of Array specialized for booleans.static classArrayBoolean.D0Concrete implementation of Array specialized for byte, rank 0.static classArrayBoolean.D1Concrete implementation of Array specialized for boolean, rank 1.static classArrayBoolean.D2Concrete implementation of Array specialized for boolean, rank 2.static classArrayBoolean.D3Concrete implementation of Array specialized for boolean, rank 3.static classArrayBoolean.D4Concrete implementation of Array specialized for boolean, rank 4.static classArrayBoolean.D5Concrete implementation of Array specialized for boolean, rank 5.static classArrayBoolean.D6Concrete implementation of Array specialized for boolean, rank 6.static classArrayBoolean.D7Concrete implementation of Array specialized for boolean, rank 7.classArrayByteConcrete implementation of Array specialized for bytes.static classArrayByte.D0Concrete implementation of Array specialized for byte, rank 0.static classArrayByte.D1Concrete implementation of Array specialized for byte, rank 1.static classArrayByte.D2Concrete implementation of Array specialized for byte, rank 2.static classArrayByte.D3Concrete implementation of Array specialized for byte, rank 3.static classArrayByte.D4Concrete implementation of Array specialized for byte, rank 4.static classArrayByte.D5Concrete implementation of Array specialized for byte, rank 5.static classArrayByte.D6Concrete implementation of Array specialized for byte, rank 6.static classArrayByte.D7Concrete implementation of Array specialized for byte, rank 7.classArrayCharConcrete implementation of Array specialized for chars.static classArrayChar.D0Concrete implementation of Array specialized for char, rank 0.static classArrayChar.D1Concrete implementation of Array specialized for char, rank 1.static classArrayChar.D2Concrete implementation of Array specialized for char, rank 2.static classArrayChar.D3Concrete implementation of Array specialized for char, rank 3.static classArrayChar.D4Concrete implementation of Array specialized for char, rank 4.static classArrayChar.D5Concrete implementation of Array specialized for char, rank 5.static classArrayChar.D6Concrete implementation of Array specialized for char, rank 6.static classArrayChar.D7Concrete implementation of Array specialized for char, rank 7.classArrayComplexConcrete implementation of Array specialized for complex.static classArrayComplex.D0Concrete implementation of Array specialized for doubles, rank 0.static classArrayComplex.D1Concrete implementation of Array specialized for doubles, rank 1.static classArrayComplex.D2Concrete implementation of Array specialized for doubles, rank 2.static classArrayComplex.D3Concrete implementation of Array specialized for doubles, rank 3.static classArrayComplex.D4Concrete implementation of Array specialized for doubles, rank 4.static classArrayComplex.D5Concrete implementation of Array specialized for doubles, rank 5.static classArrayComplex.D6Concrete implementation of Array specialized for doubles, rank 6.static classArrayComplex.D7Concrete implementation of Array specialized for doubles, rank 7.classArrayDateConcrete implementation of Array specialized for complex.static classArrayDate.D0Concrete implementation of Array specialized for doubles, rank 0.static classArrayDate.D1Concrete implementation of Array specialized for doubles, rank 1.static classArrayDate.D2Concrete implementation of Array specialized for doubles, rank 2.static classArrayDate.D3Concrete implementation of Array specialized for doubles, rank 3.static classArrayDate.D4Concrete implementation of Array specialized for doubles, rank 4.static classArrayDate.D5Concrete implementation of Array specialized for doubles, rank 5.static classArrayDate.D6Concrete implementation of Array specialized for doubles, rank 6.static classArrayDate.D7Concrete implementation of Array specialized for doubles, rank 7.classArrayDoubleConcrete implementation of Array specialized for doubles.static classArrayDouble.D0Concrete implementation of Array specialized for doubles, rank 0.static classArrayDouble.D1Concrete implementation of Array specialized for doubles, rank 1.static classArrayDouble.D2Concrete implementation of Array specialized for doubles, rank 2.static classArrayDouble.D3Concrete implementation of Array specialized for doubles, rank 3.static classArrayDouble.D4Concrete implementation of Array specialized for doubles, rank 4.static classArrayDouble.D5Concrete implementation of Array specialized for doubles, rank 5.static classArrayDouble.D6Concrete implementation of Array specialized for doubles, rank 6.static classArrayDouble.D7Concrete implementation of Array specialized for doubles, rank 7.classArrayFloatConcrete implementation of Array specialized for floats.static classArrayFloat.D0Concrete implementation of Array specialized for floats, rank 0.static classArrayFloat.D1Concrete implementation of Array specialized for floats, rank 1.static classArrayFloat.D2Concrete implementation of Array specialized for floats, rank 2.static classArrayFloat.D3Concrete implementation of Array specialized for floats, rank 3.static classArrayFloat.D4Concrete implementation of Array specialized for floats, rank 4.static classArrayFloat.D5Concrete implementation of Array specialized for floats, rank 5.static classArrayFloat.D6Concrete implementation of Array specialized for floats, rank 6.static classArrayFloat.D7Concrete implementation of Array specialized for floats, rank 7.classArrayIntConcrete implementation of Array specialized for ints.static classArrayInt.D0Concrete implementation of Array specialized for ints, rank 0.static classArrayInt.D1Concrete implementation of Array specialized for ints, rank 1.static classArrayInt.D2Concrete implementation of Array specialized for ints, rank 2.static classArrayInt.D3Concrete implementation of Array specialized for ints, rank 3.static classArrayInt.D4Concrete implementation of Array specialized for ints, rank 4.static classArrayInt.D5Concrete implementation of Array specialized for ints, rank 5.static classArrayInt.D6Concrete implementation of Array specialized for ints, rank 6.static classArrayInt.D7Concrete implementation of Array specialized for ints, rank 7.classArrayLongConcrete implementation of Array specialized for longs.static classArrayLong.D0Concrete implementation of Array specialized for longs, rank 0.static classArrayLong.D1Concrete implementation of Array specialized for longs, rank 1.static classArrayLong.D2Concrete implementation of Array specialized for longs, rank 2.static classArrayLong.D3Concrete implementation of Array specialized for longs, rank 3.static classArrayLong.D4Concrete implementation of Array specialized for longs, rank 4.static classArrayLong.D5Concrete implementation of Array specialized for longs, rank 5.static classArrayLong.D6Concrete implementation of Array specialized for longs, rank 6.static classArrayLong.D7Concrete implementation of Array specialized for longs, rank 7.classArrayObjectConcrete implementation of Array specialized for Objects.static classArrayObject.D0Concrete implementation of Array specialized for Objects, rank 0.static classArrayObject.D1Concrete implementation of Array specialized for Objects, rank 1.static classArrayObject.D2Concrete implementation of Array specialized for Objects, rank 2.static classArrayObject.D3Concrete implementation of Array specialized for Objects, rank 3.static classArrayObject.D4Concrete implementation of Array specialized for Objects, rank 4.static classArrayObject.D5Concrete implementation of Array specialized for Objects, rank 5.static classArrayObject.D6Concrete implementation of Array specialized for Objects, rank 6.static classArrayObject.D7Concrete implementation of Array specialized for Objects, rank 7.classArrayRaggedDO NOT USEclassArrayScalarHelper class for StructureDataAsciiclassArraySequenceArraySequence is the way to contain the data for a Sequence, using a StructureDataIterator.classArraySequenceNestedHandles nested sequences: a 1D array of variable length 1D arrays of StructureData.classArrayShortConcrete implementation of Array specialized for shorts.static classArrayShort.D0Concrete implementation of Array specialized for shorts, rank 0.static classArrayShort.D1Concrete implementation of Array specialized for shorts, rank 1.static classArrayShort.D2Concrete implementation of Array specialized for shorts, rank 2.static classArrayShort.D3Concrete implementation of Array specialized for shorts, rank 3.static classArrayShort.D4Concrete implementation of Array specialized for shorts, rank 4.static classArrayShort.D5Concrete implementation of Array specialized for shorts, rank 5.static classArrayShort.D6Concrete implementation of Array specialized for shorts, rank 6.static classArrayShort.D7Concrete implementation of Array specialized for shorts, rank 7.classArrayStringConcrete implementation of Array specialized for Strings.static classArrayString.D0Concrete implementation of Array specialized for String, rank 0.static classArrayString.D1Concrete implementation of Array specialized for Strings, rank 1.static classArrayString.D2Concrete implementation of Array specialized for Strings, rank 2.static classArrayString.D3Concrete implementation of Array specialized for Strings, rank 3.static classArrayString.D4Concrete implementation of Array specialized for Strings, rank 4.static classArrayString.D5Concrete implementation of Array specialized for Strings, rank 5.static classArrayString.D6Concrete implementation of Array specialized for Strings, rank 6.static classArrayString.D7Concrete implementation of Array specialized for Strings, rank 7.classArrayStructureclassArrayStructureBakSuperclass for implementations of Array of StructureData.classArrayStructureBBConcrete implementation of ArrayStructure, data storage is in a ByteBuffer, which is converted to member data on the fly.classArrayStructureBBposVariation of ArrayStructureBB, where the offsets of the records into the ByteBuffer are uneven and must be passed in by the user.classArrayStructureBBsectionDescribeclassArrayStructureCompositeAn ArrayStructure compose of other ArrayStructures.classArrayStructureMAConcrete implementation of ArrayStructure, data storage is in member arrays, which are converted to StructureData member data on the fly.classArrayStructureWConcrete implementation of ArrayStructure, with data access deferred to the StructureData objects.类型参数类型为Array的org.meteoinfo.ndarray中的字段 修饰符和类型 字段 说明 protected java.util.Map<StructureMembers.Member,Array>StructureDataW. memberData返回Array的org.meteoinfo.ndarray中的方法 修饰符和类型 方法 说明 static ArrayMAMath. add(Array a, Array b)Add elements of two arrays together, allocating the result array.static ArrayMAMath. convert(Array org, DataType wantType)Convert original array to desired typestatic ArrayMAMath. convert2packed(Array unpacked, double missingValue, int nbits, boolean isUnsigned, DataType packedType)static ArrayMAMath. convert2Unpacked(Array packed, MAMath.ScaleOffset scaleOffset)static ArrayMAMath. convertUnsigned(Array unsigned)Convert unsigned data to signed data of a wider type.ArrayArray. copy()Create a copy of this Array, copying the data so that physical order is the same as logical orderArrayArrayRagged. copy()DO NOT USE, throws UnsupportedOperationExceptionArrayArrayStructure. copy()DO NOT USE, throws UnsupportedOperationExceptionArrayArrayStructureBak. copy()DO NOT USE, throws UnsupportedOperationExceptionArrayArray. copyIfView()Create a copy of this Array if it's physical order is not the same as logical orderprotected abstract ArrayArray. createView(Index index)create new Array with given Index and the same backing storeprotected ArrayArrayBoolean. createView(Index index)create new Array with given indexImpl and same backing storeprotected ArrayArrayByte. createView(Index index)protected ArrayArrayChar. createView(Index index)create new Array with given indexImpl and same backing storeprotected ArrayArrayComplex. createView(Index index)create new Array with given indexImpl and the same backing storeprotected ArrayArrayDate. createView(Index index)create new Array with given indexImpl and the same backing storeprotected ArrayArrayDouble. createView(Index index)create new Array with given indexImpl and the same backing storeprotected ArrayArrayFloat. createView(Index index)create new Array with given indexImpl and same backing storeprotected ArrayArrayInt. createView(Index index)create new Array with given indexImpl and same backing storeprotected ArrayArrayLong. createView(Index index)create new Array with given indexImpl and same backing storeprotected ArrayArrayObject. createView(Index index)create new Array with given indexImpl and the same backing storeprotected ArrayArrayRagged. createView(Index index)DO NOT USE, throws UnsupportedOperationExceptionprotected ArrayArrayScalar. createView(Index index)protected ArrayArrayShort. createView(Index index)create new Array with given indexImpl and same backing storeprotected ArrayArrayString. createView(Index index)create new Array with given indexImpl and same backing storeprotected ArrayArrayStructure. createView(Index arg0)ArrayArrayStructureBak. createView(Index index)ArrayArraySequence. extractMemberArray(StructureMembers.Member proxym)ArrayArrayStructureBak. extractMemberArray(StructureMembers.Member m)Extract data for one member, over all structures.static ArrayArray. factory(java.lang.Class classType, int[] shape)Generate new Array with given type and shape and zeroed storage.static ArrayArray. factory(java.lang.Class classType, int[] shape, java.lang.Object storage)Generate new Array with given type, shape, storage.static ArrayArray. factory(java.lang.Class classType, Index indexCalc, java.lang.Object storage)Create new array with given type, index, storage.static ArrayArray. factory(java.lang.Object javaArray)Generate a new Array from a java array of any rank and type.static ArrayArray. factory(DataType dataType, int[] shape)Generate new Array with given type and shape and zeroed storage.static ArrayArray. factory(DataType dataType, int[] shape, java.lang.Object storage)/** Generate new Array with given type, shape, storage.static ArrayArray. factory(DataType dtype, int[] shape, java.nio.ByteBuffer bb)Create an Array from a ByteBufferstatic ArrayArray. factory(DataType dtype, Index index, java.lang.Object storage)static ArrayArray. factoryConstant(java.lang.Class classType, int[] shape, java.lang.Object storage)Generate new Array with given type and shape and an Index that always return 0.ArrayArray. flip(int dim)Create a new Array using same backing store as this Array, by flipping the index so that it runs from shape[index]-1 to 0.ArrayArrayStructureBak. getArray(int recno, StructureMembers.Member m)Get member data of any type for a specific record as an Array.ArrayArrayStructureBB. getArray(int recnum, StructureMembers.Member m)ArrayArrayStructureW. getArray(int recnum, StructureMembers.Member m)ArrayDimArray. getArray()Get arrayArrayStructureData. getArray(java.lang.String memberName)Get member data array of any type as an Array.abstract ArrayStructureData. getArray(StructureMembers.Member m)Get member data array of any type as an Array.ArrayStructureDataA. getArray(StructureMembers.Member m)ArrayStructureDataComposite. getArray(StructureMembers.Member m)ArrayStructureDataProxy. getArray(StructureMembers.Member m)ArrayStructureDataW. getArray(StructureMembers.Member m)Get member data array of any type as an Array.ArrayStructureMembers.Member. getDataArray()Get the data array, if any.ArrayDimension. getDimArray()Get dimension value arraystatic ArrayArray. makeArray(DataType dtype, boolean isUnsigned, java.util.List<java.lang.String> stringValues)Make an 1D array from a list of strings.static ArrayArray. makeArray(DataType dtype, int npts, double start, double incr)Make a 1D array from a start and inccr.static ArrayArray. makeArray(DataType dtype, java.lang.String[] stringValues)Make an 1D array from an array of strings.static ArrayArray. makeArray(DataType dtype, java.util.List<java.lang.String> stringValues)Make an 1D array from a list of strings.static ArrayArray. makeArrayRankPlusOne(Array org)Add extra dimension with len = 1.ArrayArray. permute(int[] dims)Create a new Array using same backing store as this Array, by permuting the indices.ArrayArray. reduce()Create a new Array using same backing store as this Array, by eliminating any dimensions with length one.ArrayArray. reduce(int dim)Create a new Array using same backing store as this Array, by eliminating the specified dimension.ArrayArray. reshape(int[] shape)Create a new Array by copying this Array to a new one with given shapeArrayArray. reshapeNoCopy(int[] shape)Reshape this array without copying dataArrayArray. reshapeVLen(int[] shape)Reshape this array - the new shape total size may be different.ArrayArray. section(int[] origin, int[] shape)Create a new Array as a subsection of this Array, with rank reduction.ArrayArray. section(int[] origin, int[] shape, int[] stride)Create a new Array as a subsection of this Array, with rank reduction.ArrayArray. section(java.util.List<Range> ranges)Create a new Array as a subsection of this Array, with rank reduction.ArrayFlatIndex. section(int first, int last, int stride)Get section arrayArrayFlatIndex. section(java.util.List<java.lang.Integer> idx)Set section arrayArrayArray. sectionNoReduce(int[] origin, int[] shape, int[] stride)Create a new Array as a subsection of this Array, without rank reduction.ArrayArray. sectionNoReduce(java.util.List<Range> ranges)Create a new Array as a subsection of this Array, without rank reduction.ArrayArrayStructureBak. sectionNoReduce(java.util.List<Range> ranges)ArrayArray. slice(int dim, int value)Create a new Array using same backing store as this Array, by fixing the specified dimension at the specified index value.ArrayArray. transpose(int dim1, int dim2)Create a new Array using same backing store as this Array, by transposing two of the indices.参数类型为Array的org.meteoinfo.ndarray中的方法 修饰符和类型 方法 说明 static ArrayMAMath. add(Array a, Array b)Add elements of two arrays together, allocating the result array.static voidMAMath. addDouble(Array result, Array a, Array b)Add elements of two arrays together as doubles, place sum in the result array.static voidArray. arraycopy(Array arraySrc, int srcPos, Array arrayDst, int dstPos, int len)Cover for System.arraycopy().static MAMath.ScaleOffsetMAMath. calcScaleOffsetSkipMissingData(Array a, double missingValue, int nbits, boolean isUnsigned)Calculate the scale/offset for an array of numbers.static booleanMAMath. conformable(Array a, Array b)Check that two arrays are conformable.static ArrayMAMath. convert(Array org, DataType wantType)Convert original array to desired typestatic ArrayMAMath. convert2packed(Array unpacked, double missingValue, int nbits, boolean isUnsigned, DataType packedType)static ArrayMAMath. convert2Unpacked(Array packed, MAMath.ScaleOffset scaleOffset)static ArrayMAMath. convertUnsigned(Array unsigned)Convert unsigned data to signed data of a wider type.static voidMAMath. copy(Array result, Array a)Copy array a to array result, the result array will be in canonical order The operation type is taken from the type of a.static voidMAMath. copyBoolean(Array result, Array a)copy array a to array result as bytes The array a and result must be type booleanstatic voidMAMath. copyByte(Array result, Array a)copy array a to array result as bytes The values from the array a are converted to byte (if needed), and then converted to the type of result (if needed).static voidMAMath. copyChar(Array result, Array a)copy array a to array result as char The values from the array a are converted to char (if needed), and then converted to the type of result (if needed).static voidMAMath. copyDouble(Array result, Array a)copy array a to array result as doubles The values from the arrays a are converted to double (if needed), and then converted to the type of result (if needed).static voidMAMath. copyFloat(Array result, Array a)copy array a to array result as floats The values from the arrays a are converted to float (if needed), and then converted to the type of result (if needed).static voidMAMath. copyInt(Array result, Array a)copy array a to array result as integers The values from the arrays a are converted to integer (if needed), and then converted to the type of result (if needed).static voidMAMath. copyLong(Array result, Array a)copy array a to array result as longs The values from the array a are converted to long (if needed), and then converted to the type of result (if needed).static voidMAMath. copyObject(Array result, Array a)copy array a to array result as an Object The array a and result must be type objectstatic voidMAMath. copyShort(Array result, Array a)copy array a to array result as shorts The values from the array a are converted to short (if needed), and then converted to the type of result (if needed).static booleanMAMath. fuzzyEquals(Array data1, Array data2)Returns true if the specified arrays have the same size, signedness, and approximately equal corresponding elements.static doubleMAMath. getMaximum(Array a)static doubleMAMath. getMaximumSkipMissingData(Array a, double missingValue)static doubleMAMath. getMinimum(Array a)static doubleMAMath. getMinimumSkipMissingData(Array a, double missingValue)static MAMath.MinMaxMAMath. getMinMax(Array a)Find min and max value in this array, getting values as doubles.static MAMath.MinMaxMAMath. getMinMaxSkipMissingData(Array a, double missingValue)static MAMath.MinMaxMAMath. getMinMaxSkipMissingData(Array a, IsMissingEvaluator eval)static booleanMAMath. isEqual(Array data1, Array data2)static ArrayArray. makeArrayRankPlusOne(Array org)Add extra dimension with len = 1.voidDimArray. setArray(Array value)Set arrayvoidStructureMembers.Member. setDataArray(Array data)Set the data array.static voidMAMath. setDouble(Array result, double val)Set all the elements of this array to the given double value.voidArrayStructureBak. setMemberArray(StructureMembers.Member m, Array memberArray)Set data for one member, over all structures.voidArrayStructureMA. setMemberArray(java.lang.String memberName, Array data)Set the data array for this member.voidStructureDataW. setMemberData(java.lang.String memberName, Array data)voidStructureDataW. setMemberData(StructureMembers.Member m, Array data)voidFlatIndex. setSection(int first, int last, int stride, Array value)Set section arrayvoidFlatIndex. setSection(java.util.List<java.lang.Integer> idx, Array value)Set sectionstatic doubleMAMath. sumDouble(Array a)sum all of the elements of array a as doubles.static doubleMAMath. sumDoubleSkipMissingData(Array a, double missingValue)sum all of the elements of array a as doubles.参数类型为Array的org.meteoinfo.ndarray中的构造器 构造器 说明 DimArray(Array array, java.util.List<Dimension> dims)ConstructorFlatIndex(Array array)ConstructorListIterator(Array array, java.util.List<java.lang.Object> ranges)ConstructorMAMatrix(Array a)Create an MAMatrix using the given rank-2 array.MAVector(Array a)Create an MAVector using the given rank-1 array.MixIterator(Array array, java.util.List<java.lang.Object> ranges)Constructor -
org.meteoinfo.ndarray.math中Array的使用
返回Array的org.meteoinfo.ndarray.math中的方法 修饰符和类型 方法 说明 static ArrayArrayMath. abs(Array a)Array absolutestatic ArrayArrayMath. acos(Array a)Arc cosine functionstatic ArrayArrayMath. add(Array a, java.lang.Number b)Array addstatic ArrayArrayMath. add(Array a, Array b)Array addstatic ArrayArrayMath. add(Array a, Complex b)Array addstatic ArrayArrayMath. all(Array a, int axis)Test whether all array element along a given axis evaluates to True.static ArrayArrayMath. any(Array a, int axis)Test whether any array element along a given axis evaluates to True.static ArrayArrayMath. argMax(Array a, int axis)Get the indices of the maximum values along an axis.static ArrayArrayMath. argMin(Array a, int axis)Get the indices of the minimum values along an axis.static ArrayArrayUtil. argSort(Array a, java.lang.Integer axis)Get sorted array index along an axisstatic ArrayArrayUtil. array(java.lang.Object data)Create an arraystatic ArrayArrayUtil. array(java.lang.Object data, DataType dt)Create an arraystatic ArrayArrayUtil. array_list(java.util.List data, DataType dt)Create an arraystatic ArrayArrayUtil. arrayRange(java.lang.Number start, java.lang.Number stop, java.lang.Number step)Array rangestatic ArrayArrayUtil. arrayRange_bak(java.lang.Number start, java.lang.Number stop, java.lang.Number step)Array rangestatic ArrayArrayUtil. arrayRange1(java.lang.Number start, int length, java.lang.Number step)Array rangestatic ArrayArrayMath. asin(Array a)Arc sine functionstatic ArrayArrayMath. atan(Array a)Arc tangen functionstatic ArrayArrayMath. atan2(Array a, Array b)Arc tangen functionstatic ArrayArrayMath. binCount(Array a)Count number of occurrences of each value in array of non-negative intsstatic ArrayArrayMath. binCount(Array a, Array weights)Count number of occurrences of each value in array of non-negative intsstatic ArrayArrayMath. bitAnd(Array a, java.lang.Number b)Bit and operationstatic ArrayArrayMath. bitAnd(Array a, Array b)Bit and operationstatic ArrayArrayMath. bitInvert(Array a)Bit inversion ~ operationstatic ArrayArrayMath. bitOr(Array a, java.lang.Number b)Bit or | operationstatic ArrayArrayMath. bitOr(Array a, Array b)Bit or | operationstatic ArrayArrayMath. bitXor(Array a, java.lang.Number b)Bit exclusive or ^ operationstatic ArrayArrayMath. bitXor(Array a, Array b)Bit exclusive or | operationstatic ArrayArrayUtil. broadcast(Array a, int[] shape)Broadcast array to a new shapestatic ArrayArrayUtil. broadcast(Array a, java.util.List<java.lang.Integer> shape)Broadcast array to a new shapestatic Array[]ArrayMath. cartesianToPolar(Array x, Array y)Convert cartesian to polar coordinatestatic ArrayArrayMath. cdiff(Array data, int dimIdx)Performs a centered difference operation on a grid data along one dimension directionstatic ArrayArrayMath. cdiff_bak(Array data, boolean isX)Performs a centered difference operation on a grid data in the x or y directionstatic ArrayArrayMath. ceil(Array a)Return the ceiling of the input, element-wise.static ArrayArrayUtil. concatenate(java.util.List<Array> arrays, java.lang.Integer axis)Concatenate arrays to one array along a axisstatic ArrayArrayUtil. concatenate(Array a, Array b, java.lang.Integer axis)Concatenate two arrays to one array along a axisstatic ArrayArrayUtil. convertEncoding(ArrayChar a, java.lang.String encoding)Convert char array encoding from UTF-8static ArrayArrayMath. copy(Array a)Copy arraystatic ArrayArrayMath. cos(Array a)Cosine functionstatic ArrayArrayUtil. cressman(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array v_s, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, java.util.List<java.lang.Number> radList)Cressman analysisstatic ArrayArrayUtil. cressman_bak(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array v_s, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, java.util.List<java.lang.Number> radList)Cressman analysisstatic ArrayArrayMath. cumsum(Array a, int axis)Return the cumulative sum of the elements along a given axis.static ArrayArrayUtil. delete(Array a, int idx, int axis)Return a new array with sub-arrays along an axis deletedstatic ArrayArrayUtil. delete(Array a, java.util.List<java.lang.Integer> idx, int axis)Return a new array with sub-arrays along an axis deletedstatic ArrayArrayUtil. diag(Array a, int k)Extract a diagonal or construct a diagonal array.static ArrayArrayMath. div(java.lang.Number b, Array a)Array dividestatic ArrayArrayMath. div(Array a, java.lang.Number b)Array dividestatic ArrayArrayMath. div(Array a, Array b)Array dividestatic ArrayArrayMath. div(Array a, Complex b)Array dividestatic ArrayArrayMath. div(Complex b, Array a)Array dividestatic ArrayArrayMath. dot(Array a, Array b)Matrix multiplicationstatic ArrayArrayUtil. empty(java.util.List<java.lang.Integer> shape, DataType dtype)Get zero arraystatic ArrayArrayMath. equal(Array a, java.lang.Number b)Array equalstatic ArrayArrayMath. equal(Array a, java.lang.String b)Array equalstatic ArrayArrayMath. equal(Array a, Array b)Array equalstatic ArrayArrayMath. exp(Array a)Exponent functionstatic Array[]ArrayUtil. extendHalfCell(Array x, Array y)Extend the grid to half cell, so the grid points are the centers of the cellsstatic ArrayArrayUtil. eye(int n, int m, int k, DataType dtype)Return a 2-D array with ones on the diagonal and zeros elsewhere.static ArrayArrayUtil. flatNonZero(Array a)Return the flat indices of the elements that are non-zero.static ArrayArrayMath. flip(Array a, int idx)Flip arraystatic ArrayArrayMath. flip(Array a, java.util.List<java.lang.Integer> idxs)Flip arraystatic ArrayArrayMath. floor(Array a)Return the ceiling of the input, element-wise.static ArrayArrayMath. floorDiv(java.lang.Number b, Array a)Array floor dividestatic ArrayArrayMath. floorDiv(Array a, java.lang.Number b)Array floor dividestatic ArrayArrayMath. floorDiv(Array a, Array b)Array modstatic ArrayArrayMath. fmax(Array x1, Array x2)Element-wise maximum of array elements, ignores NaNs.static ArrayArrayMath. fmin(Array x1, Array x2)Element-wise minimum of array elements, ignores NaNs.static ArrayArrayUtil. full(java.util.List<java.lang.Integer> shape, java.lang.Object fillValue, DataType dtype)Return a new array of given shape and type, filled with fill value.static ArrayArrayUtil. full(java.util.List<java.lang.Integer> shape, Array fillValue, DataType dtype)Return a new array of given shape and type, filled with fill value.static ArrayArrayMath. greaterThan(Array a, java.lang.Number b)Array greater thanstatic ArrayArrayMath. greaterThan(Array a, Array b)Array greater thanstatic ArrayArrayMath. greaterThanOrEqual(Array a, java.lang.Number b)Array greater than or equalstatic ArrayArrayMath. greaterThanOrEqual(Array a, Array b)Array greater than or equalstatic ArrayArrayMath. 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)static ArrayArrayMath. hcurl(Array uData, Array vData, Array xx, Array yy)Calculates the vertical component of the curl (ie, vorticity)static ArrayArrayMath. 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 differencingstatic ArrayArrayMath. hdivg(Array uData, Array vData, Array xx, Array yy)Calculates the horizontal divergence using finite differencingstatic ArrayArrayUtil. identity(int n, DataType dtype)Return the identity array - a square array with ones on the main diagonal.static ArrayArrayUtil. interpn(java.util.List<Array> points, Array values, java.util.List<Array> xi)Multidimensional interpolation on regular grids.ArrayArrayUtil. interpolate(Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y)Interpolate array datastatic ArrayArrayUtil. interpolate_1d(double x, Array xp, Array a, int axis)Interpolates data with any shape over a specified axis.static ArrayArrayUtil. interpolate_1d(Array xa, Array xp, Array a, int axis)Interpolates data with any shape over a specified axis.static ArrayArrayUtil. interpolation_Inside(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y)Interpolate with inside method - The grid cell value is the average value of the inside points or fill value if no inside point.static ArrayArrayUtil. interpolation_Inside_Max(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y)Interpolate with inside method - The grid cell value is the maximum value of the inside points or fill value if no inside point.static ArrayArrayUtil. interpolation_Inside_Mean(Array x_s, Array y_s, Array a, Array X, Array Y, boolean center)Interpolate with inside method - The grid cell value is the average value of the inside points or fill value if no inside point.static ArrayArrayUtil. interpolation_Inside_Min(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y)Interpolate with inside method - The grid cell value is the minimum value of the inside points or fill value if no inside point.static ArrayArrayUtil. interpolation_Nearest_1(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, double radius, double fill_value)Interpolate with nearest methodstatic ArrayArrayUtil. interpolation_Nearest_bak(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, double radius)Interpolate with nearest methodstatic ArrayArrayMath. 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.static ArrayArrayMath. isClose(Array a, Array b, double rTol, double aTol)Returns a boolean array where two arrays are element-wise equal within a tolerance.static ArrayArrayMath. 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.static ArrayArrayMath. isFinite(Array a)Test element-wise for finiteness (not infinity or not Not a Number).static ArrayArrayMath. isInfinite(Array a)Test element-wise for positive or negative infinity.static ArrayArrayMath. join(Array a, Array b, int dim)Join two arrays by a dimensionstatic ArrayArrayMath. leftShift(Array a, java.lang.Number b)Bit left shift operationstatic ArrayArrayMath. leftShift(Array a, Array b)Bit left shift operationstatic ArrayArrayMath. lessThan(Array a, java.lang.Number b)Array less thanstatic ArrayArrayMath. lessThan(Array a, Array b)Array less thanstatic ArrayArrayMath. lessThanOrEqual(Array a, java.lang.Number b)Array less than or equalstatic ArrayArrayMath. lessThanOrEqual(Array a, Array b)Array less than or equalstatic ArrayArrayUtil. lineSpace(java.lang.Number start, java.lang.Number stop, int n, boolean endpoint)Array line spacestatic ArrayArrayUtil. lineSpace_bak(java.lang.Number start, java.lang.Number stop, int n, boolean endpoint)Array line spacestatic ArrayArrayUtil. linint2(Array a, Array X, Array Y, Array newX, Array newY)Interpolates from a rectilinear grid to another rectilinear grid using bilinear interpolation.static ArrayArrayMath. log(Array a)Log functionstatic ArrayArrayMath. log10(Array a)Log10 functionstatic ArrayArrayMath. logicalNot(Array a)Logical notstatic ArrayArrayMath. magnitude(Array uData, Array vData)Take magnitude value from U/V grid datastatic ArrayArrayMath. maskin(Array a, Array m)Maskin functionstatic ArrayArrayMath. maskout(Array a, Array m)Maskout functionstatic ArrayArrayMath. maskout(Array a, Array m, java.lang.Number missingValue)Maskout functionstatic ArrayArrayMath. max(Array a, int axis)Compute maximum value of an array along an axis (dimension)static ArrayArrayMath. maximum(Array x1, Array x2)Element-wise maximum of array elements.static ArrayArrayMath. mean(java.util.List<Array> alist)Compute the arithmetic mean arry from a list of arraysstatic ArrayArrayMath. mean(Array a, int axis)Compute mean value of an array along an axis (dimension)static ArrayArrayMath. mean(Array a, java.util.List<java.lang.Integer> axis)Compute mean value of an array along an axis (dimension)static ArrayArrayMath. median(Array a, int axis)Compute median value of an array along an axis (dimension)static Array[]ArrayUtil. meshgrid(Array x)Mesh gridstatic Array[]ArrayUtil. meshgrid(Array... xs)Mesh gridstatic Array[]ArrayUtil. meshgrid(Array x, Array y)Mesh gridstatic ArrayArrayMath. min(Array a, int axis)Compute minimum value of an array along an axis (dimension)static ArrayArrayMath. minimum(Array x1, Array x2)Element-wise minimum of array elements.static ArrayArrayMath. mod(java.lang.Number b, Array a)Array modstatic ArrayArrayMath. mod(Array a, java.lang.Number b)Array modstatic ArrayArrayMath. mod(Array a, Array b)Array modstatic ArrayArrayMath. mul(Array a, java.lang.Number b)Array multiplystatic ArrayArrayMath. mul(Array a, Array b)Array mutiplystatic ArrayArrayMath. mul(Array a, Complex b)Array multiplystatic ArrayArrayMath. notEqual(Array a, java.lang.Number b)Array not equalstatic ArrayArrayMath. notEqual(Array a, Array b)Array not equalstatic ArrayArrayUtil. ones(int n)Get ones arraystatic ArrayArrayUtil. ones(java.util.List<java.lang.Integer> shape, DataType dtype)Get ones arraystatic ArrayArrayMath. outer(Array a, Array b)Compute the outer product of two vectors.static Array[]ArrayMath. polarToCartesian(Array B, Array r)Convert poar to cartesian coordinatestatic ArrayArrayMath. polyVal(java.util.List<java.lang.Number> p, Array x)Evaluate a polynomial at specific values.static ArrayArrayMath. pow(java.lang.Number a, Array b)Array pow functionstatic ArrayArrayMath. pow(Array a, java.lang.Number b)Array pow functionstatic ArrayArrayMath. pow(Array a, Array b)Array pow functionstatic ArrayArrayMath. pow(Array a, Complex b)Array pow functionstatic ArrayArrayMath. pow(Complex b, Array a)Array pow functionstatic ArrayArrayUtil. rand(int n)Get random array - one dimensionstatic ArrayArrayUtil. rand(java.util.List<java.lang.Integer> shape)Get random arraystatic ArrayArrayUtil. readASCIIFile(java.lang.String fileName, java.lang.String delimiter, int headerLines, java.lang.String dataType, java.util.List<java.lang.Integer> shape, boolean readFirstCol)Read ASCII data file to an arraystatic ArrayArrayUtil. readASCIIFile(java.lang.String fileName, java.lang.String delimiter, int headerLines, DataType dataType, java.util.List<java.lang.Integer> shape, boolean readFirstCol)Read ASCII data file to an arraystatic ArrayArrayUtil. readASCIIFile(java.lang.String fileName, DataType dataType, int count, java.lang.String delimiter)Read ASCII data file to an arraystatic ArrayArrayUtil. readBinFile(java.lang.String fn, java.util.List<java.lang.Integer> dims, java.lang.String dataType, int skip, java.lang.String byteOrder)Read array from a binary filestatic ArrayArrayUtil. readBinFile(java.lang.String fn, DataType dataType, int count, int offset)Read array from a binary filestatic ArrayArrayUtil. readBinFile(java.lang.String fn, DataType dataType, int count, int offset, java.lang.String byteOrder)Read array from a binary filestatic ArrayArrayMath. removeNaN(Array a)Remove NaN values in an arraystatic Array[]ArrayMath. removeNaN(Array... a)Remove NaN values in arraysstatic ArrayArrayUtil. repeat(java.lang.Number v, int n)Repeat a value n timesstatic ArrayArrayUtil. repeat(Array a, java.util.List<java.lang.Integer> repeats)Repeat elements of an array.static ArrayArrayUtil. repeat(Array a, java.util.List<java.lang.Integer> repeats, int axis)Repeat elements of an array.static ArrayArrayUtil. resample_Bilinear(Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, java.util.List<java.lang.Number> newX, java.util.List<java.lang.Number> newY)Resample grid array with bilinear methodstatic ArrayArrayUtil. resample_Bilinear(Array a, Array X, Array Y, Array newX, Array newY)Resample grid array with bilinear methodstatic ArrayArrayUtil. resample_Neighbor(Array a, Array X, Array Y, Array newX, Array newY)Resample grid array with neighbor methodstatic ArrayArrayMath. rightShift(Array a, java.lang.Number b)Bit right shift operationstatic ArrayArrayMath. rightShift(Array a, Array b)Bit right shift operationstatic ArrayArrayMath. rolling_mean(Array x, int window, boolean center)Moving average functionstatic ArrayArrayMath. rot90(Array a, int k)Rotate an array by 90 degrees in counter-clockwise direction.static ArrayArrayUtil. searchSorted(Array a, Array v, boolean left)Find indices where elements should be inserted to maintain order.static ArrayArrayMath. section(Array a, int[] origin, int[] size, int[] stride)Section arraystatic ArrayArrayMath. section(Array a, java.util.List<Range> ranges)Section arraystatic ArrayArrayMath. setSection(Array a, int[] origin, int[] shape, Array v)Set sectionstatic ArrayArrayMath. setSection(Array a, java.util.List<Range> ranges, java.lang.Number v)Set sectionstatic ArrayArrayMath. setSection(Array a, java.util.List<Range> ranges, java.lang.Object v)Set sectionstatic ArrayArrayMath. setSection(Array a, java.util.List<Range> ranges, Array v)Set sectionstatic ArrayArrayMath. setSection_List(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges, java.lang.Number v)Set sectionstatic ArrayArrayMath. setSection_List(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges, Array v)Set sectionstatic ArrayArrayMath. setSection_Mix(Array a, java.util.List<java.lang.Object> ranges, java.lang.Number v)Set sectionstatic ArrayArrayMath. setSection_Mix(Array a, java.util.List<java.lang.Object> ranges, Array v)Set sectionstatic ArrayArrayMath. setSection_Mix_Bak(Array a, java.util.List<java.lang.Object> ranges, java.lang.Number v)Set sectionstatic ArrayArrayMath. setSection_Mix_Bak(Array a, java.util.List<java.lang.Object> ranges, Array v)Set sectionstatic ArrayArrayMath. sign(Array x)Returns an element-wise indication of the sign of a number.static ArrayArrayMath. sin(Array a)Sine functionstatic ArrayArrayUtil. slice(Array a, int axis, int idx)Get slice array along an axisstatic ArrayArrayUtil. slice(Array a, int axis, Array dim, double v)Get slice array along an axisstatic ArrayArrayUtil. smooth5(Array a)Smooth with 5 pointsstatic ArrayArrayUtil. smooth5(Array a, int rowNum, int colNum, double unDefData)Smooth with 5 pointsstatic ArrayArrayUtil. smooth9(Array a)Smooth with 9 pointsstatic ArrayArrayUtil. sort(Array a, java.lang.Integer axis)Sort array along an axisstatic ArrayArrayMath. sqrt(Array a)Sqrt functionstatic ArrayArrayMath. std(Array a, int axis, int ddof)Compute standard deviation value of an array along an axis (dimension)static ArrayArrayMath. sub(java.lang.Number b, Array a)Array subtractstatic ArrayArrayMath. sub(Array a, java.lang.Number b)Array subtractstatic ArrayArrayMath. sub(Array a, Array b)Array subtractstatic ArrayArrayMath. sub(Array a, Complex b)Array subtractstatic ArrayArrayMath. sub(Complex b, Array a)Array subtractstatic ArrayArrayMath. sum(java.util.List<Array> alist)Compute the sum arry from a list of arraysstatic ArrayArrayMath. sum(Array a, int axis)Compute sum value of an array along an axis (dimension)static ArrayArrayMath. take(Array a, java.util.List<java.lang.Object> ranges)Take elements from an array along an axis.static ArrayArrayMath. take(Array a, Array condition)Extract 1D array by boolean arraystatic ArrayArrayMath. take(Array a, Array indices, java.lang.Integer axis)Take elements from an array along an axis.static ArrayArrayMath. takeValues(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges)Take elements from an array.static ArrayArrayMath. tan(Array a)Tangent functionstatic ArrayArrayUtil. tile(java.lang.Number v, int n)Repeat a value n timesstatic ArrayArrayUtil. tile(java.lang.Number v, java.util.List<java.lang.Integer> repeats)Repeat a value n timesstatic ArrayArrayUtil. tile(Array a, java.util.List<java.lang.Integer> repeats)Repeat elements of an array.static ArrayArrayUtil. toBoolean(Array a)Convert array to boolean typestatic ArrayArrayUtil. toDate(Array a)Convert array to date typestatic ArrayArrayMath. toDegrees(Array a)Convert radians to degrees functionstatic ArrayArrayUtil. toDouble(Array a)Convert array to double typestatic ArrayArrayUtil. toFloat(Array a)Convert array to float typestatic ArrayArrayUtil. toInteger(Array a)Convert array to integer typestatic ArrayArrayMath. toRadians(Array a)Convert radians to degrees functionstatic ArrayArrayMath. transpose(Array a, int dim1, int dim2)Transpose arraystatic ArrayArrayMath. trapz(Array a, double dx, int axis)Integrate vector array using the composite trapezoidal rule.static ArrayArrayMath. trapz(Array a, Array x, int axis)Integrate vector array using the composite trapezoidal rule.static ArrayArrayUtil. unique(Array a, java.lang.Integer axis)Find the unique elements of an array.static ArrayArrayMath. var(Array a, int axis, int ddof)Compute variance value of an array along an axis (dimension)static ArrayArrayUtil. view(Array a)New view of array with the same data.static ArrayArrayUtil. zeros(int n)Get zero arraystatic ArrayArrayUtil. zeros(java.util.List<java.lang.Integer> shape, java.lang.String dtype)Get zero arraystatic ArrayArrayUtil. zeros(java.util.List<java.lang.Integer> shape, DataType dtype)Get zero array返回变量类型为Array的类型的org.meteoinfo.ndarray.math中的方法 修饰符和类型 方法 说明 static java.util.List<Array>ArrayUtil. arraySplit(Array a, int sections, int axis)static java.util.List<Array>ArrayUtil. histogram(Array a, double[] bins)Histogram x/y arraystatic java.util.List<Array>ArrayUtil. histogram(Array a, int nbins)Histogram x/y arraystatic java.util.List<Array>ArrayUtil. histogram(Array a, Array bins)Histogram x/y arraystatic java.util.List<Array>ArrayUtil. nonzero(Array a)Return the indices of the elements that are non-zero.参数类型为Array的org.meteoinfo.ndarray.math中的方法 修饰符和类型 方法 说明 static ArrayArrayMath. abs(Array a)Array absolutestatic ArrayArrayMath. acos(Array a)Arc cosine functionstatic ArrayArrayMath. add(Array a, java.lang.Number b)Array addstatic ArrayArrayMath. add(Array a, Array b)Array addstatic ArrayArrayMath. add(Array a, Complex b)Array addstatic booleanArrayMath. all(Array a)Test whether all array element evaluates to True.static ArrayArrayMath. all(Array a, int axis)Test whether all array element along a given axis evaluates to True.static booleanArrayMath. any(Array a)Test whether any array element evaluates to True.static ArrayArrayMath. any(Array a, int axis)Test whether any array element along a given axis evaluates to True.static intArrayMath. argMax(Array a)Get the index of the maximum value into the flattened array.static ArrayArrayMath. argMax(Array a, int axis)Get the indices of the maximum values along an axis.static intArrayMath. argMin(Array a)Get the index of the minimum value into the flattened array.static ArrayArrayMath. argMin(Array a, int axis)Get the indices of the minimum values along an axis.static ArrayArrayUtil. argSort(Array a, java.lang.Integer axis)Get sorted array index along an axisstatic java.util.List<Array>ArrayUtil. arraySplit(Array a, int sections, int axis)static ArrayArrayMath. asin(Array a)Arc sine functionstatic java.util.List<java.lang.Object>ArrayMath. asList(Array a)As number liststatic ArrayArrayMath. atan(Array a)Arc tangen functionstatic ArrayArrayMath. atan2(Array a, Array b)Arc tangen functionstatic doubleArrayMath. aveDouble(Array a)Average arraystatic doubleArrayMath. aveDouble(Array a, double missingValue)Average array skip missing valuestatic ArrayArrayMath. binCount(Array a)Count number of occurrences of each value in array of non-negative intsstatic ArrayArrayMath. binCount(Array a, Array weights)Count number of occurrences of each value in array of non-negative intsstatic ArrayArrayMath. bitAnd(Array a, java.lang.Number b)Bit and operationstatic ArrayArrayMath. bitAnd(Array a, Array b)Bit and operationstatic ArrayArrayMath. bitInvert(Array a)Bit inversion ~ operationstatic ArrayArrayMath. bitOr(Array a, java.lang.Number b)Bit or | operationstatic ArrayArrayMath. bitOr(Array a, Array b)Bit or | operationstatic ArrayArrayMath. bitXor(Array a, java.lang.Number b)Bit exclusive or ^ operationstatic ArrayArrayMath. bitXor(Array a, Array b)Bit exclusive or | operationstatic int[]ArrayMath. broadcast(Array a, Array b)Get broadcast shape from two arraysstatic ArrayArrayUtil. broadcast(Array a, int[] shape)Broadcast array to a new shapestatic ArrayArrayUtil. broadcast(Array a, java.util.List<java.lang.Integer> shape)Broadcast array to a new shapestatic intArrayMath. broadcastCheck(Array a, Array b)Broadcast check for two arrays.static Array[]ArrayMath. cartesianToPolar(Array x, Array y)Convert cartesian to polar coordinatestatic ArrayArrayMath. cdiff(Array data, int dimIdx)Performs a centered difference operation on a grid data along one dimension directionstatic ArrayArrayMath. cdiff_bak(Array data, boolean isX)Performs a centered difference operation on a grid data in the x or y directionstatic ArrayArrayMath. ceil(Array a)Return the ceiling of the input, element-wise.static ArrayArrayUtil. concatenate(Array a, Array b, java.lang.Integer axis)Concatenate two arrays to one array along a axisstatic booleanArrayMath. containsNaN(Array a)Check if the array contains NaN valuestatic java.lang.StringArrayUtil. convertToString(Array a)Array to stringstatic ArrayArrayMath. copy(Array a)Copy arraystatic java.lang.ObjectArrayUtil. copyToNDJavaArray(Array a)Convert array to N-Dimension double Java arraystatic java.lang.ObjectArrayUtil. copyToNDJavaArray(Array a, java.lang.String dtype)Convert array to N-Dimension double Java arraystatic java.lang.ObjectArrayUtil. copyToNDJavaArray_Double(Array a)Convert array to N-Dimension double Java arraystatic java.lang.ObjectArrayUtil. copyToNDJavaArray_Double(Array a, double missingValue)Convert array to N-Dimension double Java arraystatic java.lang.ObjectArrayUtil. copyToNDJavaArray_Long(Array a)Convert array to N-Dimension double Java arraystatic ArrayArrayMath. cos(Array a)Cosine functionstatic ArrayArrayUtil. cressman(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array v_s, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, java.util.List<java.lang.Number> radList)Cressman analysisstatic ArrayArrayUtil. cressman_bak(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array v_s, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, java.util.List<java.lang.Number> radList)Cressman analysisstatic ArrayArrayMath. cumsum(Array a, int axis)Return the cumulative sum of the elements along a given axis.static java.util.List<java.lang.Double>ArrayMath. cumsum(Array a, java.util.List<Range> ranges)Compute cumulative sum value of an arraystatic ArrayArrayUtil. delete(Array a, int idx, int axis)Return a new array with sub-arrays along an axis deletedstatic ArrayArrayUtil. delete(Array a, java.util.List<java.lang.Integer> idx, int axis)Return a new array with sub-arrays along an axis deletedstatic ArrayArrayUtil. diag(Array a, int k)Extract a diagonal or construct a diagonal array.static ArrayArrayMath. div(java.lang.Number b, Array a)Array dividestatic ArrayArrayMath. div(Array a, java.lang.Number b)Array dividestatic ArrayArrayMath. div(Array a, Array b)Array dividestatic ArrayArrayMath. div(Array a, Complex b)Array dividestatic ArrayArrayMath. div(Complex b, Array a)Array dividestatic ArrayArrayMath. dot(Array a, Array b)Matrix multiplicationstatic ArrayArrayMath. equal(Array a, java.lang.Number b)Array equalstatic ArrayArrayMath. equal(Array a, java.lang.String b)Array equalstatic ArrayArrayMath. equal(Array a, Array b)Array equalstatic ArrayArrayMath. exp(Array a)Exponent functionstatic Array[]ArrayUtil. extendHalfCell(Array x, Array y)Extend the grid to half cell, so the grid points are the centers of the cellsstatic java.lang.Object[]ArrayUtil. findIndices(java.util.List<Array> points, Array xi)Find indicesstatic ArrayArrayUtil. flatNonZero(Array a)Return the flat indices of the elements that are non-zero.static ArrayArrayMath. flip(Array a, int idx)Flip arraystatic ArrayArrayMath. flip(Array a, java.util.List<java.lang.Integer> idxs)Flip arraystatic ArrayArrayMath. floor(Array a)Return the ceiling of the input, element-wise.static ArrayArrayMath. floorDiv(java.lang.Number b, Array a)Array floor dividestatic ArrayArrayMath. floorDiv(Array a, java.lang.Number b)Array floor dividestatic ArrayArrayMath. floorDiv(Array a, Array b)Array modstatic ArrayArrayMath. fmax(Array x1, Array x2)Element-wise maximum of array elements, ignores NaNs.static ArrayArrayMath. fmin(Array x1, Array x2)Element-wise minimum of array elements, ignores NaNs.static ArrayArrayUtil. full(java.util.List<java.lang.Integer> shape, Array fillValue, DataType dtype)Return a new array of given shape and type, filled with fill value.static intArrayUtil. getDimIndex(Array dim, java.lang.Number v)Get value index in a dimension arraystatic doubleArrayMath. getMaximum(Array a)Get maximum valuestatic doubleArrayMath. getMaximum(Array a, double missingv)Get maximum valuestatic doubleArrayMath. getMinimum(Array a)Get minimum valuestatic doubleArrayMath. getMinimum(Array a, double missingv)Get minimum valuestatic floatArrayMath. getR(Array xData, Array yData)Get correlation coefficient How well did the forecast values correspond to the observed values?static ArrayArrayMath. greaterThan(Array a, java.lang.Number b)Array greater thanstatic ArrayArrayMath. greaterThan(Array a, Array b)Array greater thanstatic ArrayArrayMath. greaterThanOrEqual(Array a, java.lang.Number b)Array greater than or equalstatic ArrayArrayMath. greaterThanOrEqual(Array a, Array b)Array greater than or equalstatic int[]ArrayUtil. gridIndex(Array xdim, Array ydim, double x, double y)Get grid array x/y value indexstatic ArrayArrayMath. 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)static ArrayArrayMath. hcurl(Array uData, Array vData, Array xx, Array yy)Calculates the vertical component of the curl (ie, vorticity)static ArrayArrayMath. 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 differencingstatic ArrayArrayMath. hdivg(Array uData, Array vData, Array xx, Array yy)Calculates the horizontal divergence using finite differencingstatic java.util.List<Array>ArrayUtil. histogram(Array a, double[] bins)Histogram x/y arraystatic java.util.List<Array>ArrayUtil. histogram(Array a, int nbins)Histogram x/y arraystatic java.util.List<Array>ArrayUtil. histogram(Array a, Array bins)Histogram x/y arraystatic ArrayArrayUtil. interpn(java.util.List<Array> points, Array values, java.util.List<Array> xi)Multidimensional interpolation on regular grids.static java.lang.ObjectArrayUtil. interpn(java.util.List<Array> points, Array values, Array xi)Multidimensional interpolation on regular grids.static doubleArrayUtil. interpn_s(java.util.List<java.util.List<java.lang.Number>> points, Array values, java.util.List<java.lang.Number> xi)Multidimensional interpolation on regular grids.static doubleArrayUtil. interpn_s(java.util.List<Array> points, Array values, Array xi)Multidimensional interpolation on regular grids.ArrayArrayUtil. interpolate(Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y)Interpolate array datastatic ArrayArrayUtil. interpolate_1d(double x, Array xp, Array a, int axis)Interpolates data with any shape over a specified axis.static ArrayArrayUtil. interpolate_1d(Array xa, Array xp, Array a, int axis)Interpolates data with any shape over a specified axis.static ArrayArrayUtil. interpolation_Inside(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y)Interpolate with inside method - The grid cell value is the average value of the inside points or fill value if no inside point.static ArrayArrayUtil. interpolation_Inside_Max(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y)Interpolate with inside method - The grid cell value is the maximum value of the inside points or fill value if no inside point.static ArrayArrayUtil. interpolation_Inside_Mean(Array x_s, Array y_s, Array a, Array X, Array Y, boolean center)Interpolate with inside method - The grid cell value is the average value of the inside points or fill value if no inside point.static ArrayArrayUtil. interpolation_Inside_Min(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y)Interpolate with inside method - The grid cell value is the minimum value of the inside points or fill value if no inside point.static ArrayArrayUtil. interpolation_Nearest_1(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, double radius, double fill_value)Interpolate with nearest methodstatic ArrayArrayUtil. interpolation_Nearest_bak(java.util.List<java.lang.Number> x_s, java.util.List<java.lang.Number> y_s, Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, double radius)Interpolate with nearest methodstatic ArrayArrayMath. 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.static ArrayArrayMath. isClose(Array a, Array b, double rTol, double aTol)Returns a boolean array where two arrays are element-wise equal within a tolerance.static ArrayArrayMath. 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.static booleanArrayMath. isComplex(Array a)Check if an array is complex data typestatic ArrayArrayMath. isFinite(Array a)Test element-wise for finiteness (not infinity or not Not a Number).static ArrayArrayMath. isInfinite(Array a)Test element-wise for positive or negative infinity.static booleanArrayMath. isNumeric(Array a)Check if an array is numeric arraystatic ArrayArrayMath. join(Array a, Array b, int dim)Join two arrays by a dimensionstatic ArrayArrayMath. leftShift(Array a, java.lang.Number b)Bit left shift operationstatic ArrayArrayMath. leftShift(Array a, Array b)Bit left shift operationstatic ArrayArrayMath. lessThan(Array a, java.lang.Number b)Array less thanstatic ArrayArrayMath. lessThan(Array a, Array b)Array less thanstatic ArrayArrayMath. lessThanOrEqual(Array a, java.lang.Number b)Array less than or equalstatic ArrayArrayMath. lessThanOrEqual(Array a, Array b)Array less than or equalstatic double[]ArrayMath. lineRegress(Array xData, Array yData)Linear regressstatic ArrayArrayUtil. linint2(Array a, Array X, Array Y, Array newX, Array newY)Interpolates from a rectilinear grid to another rectilinear grid using bilinear interpolation.static ArrayArrayMath. log(Array a)Log functionstatic ArrayArrayMath. log10(Array a)Log10 functionstatic ArrayArrayMath. logicalNot(Array a)Logical notstatic ArrayArrayMath. magnitude(Array uData, Array vData)Take magnitude value from U/V grid datastatic ArrayArrayMath. maskin(Array a, Array m)Maskin functionstatic ArrayArrayMath. maskout(Array a, Array m)Maskout functionstatic ArrayArrayMath. maskout(Array a, Array m, java.lang.Number missingValue)Maskout functionstatic java.lang.NumberArrayMath. max(Array a)Compute maximum value of an arraystatic ArrayArrayMath. max(Array a, int axis)Compute maximum value of an array along an axis (dimension)static doubleArrayMath. max(Array a, java.util.List<Range> ranges)Compute maximum value of an arraystatic ArrayArrayMath. maximum(Array x1, Array x2)Element-wise maximum of array elements.static doubleArrayMath. mean(Array a)Compute mean value of an arraystatic ArrayArrayMath. mean(Array a, int axis)Compute mean value of an array along an axis (dimension)static ArrayArrayMath. mean(Array a, java.util.List<java.lang.Integer> axis)Compute mean value of an array along an axis (dimension)static doubleArrayMath. meanRange(Array a, java.util.List<Range> ranges)Compute mean value of an array by rangesstatic doubleArrayMath. median(Array a)Compute median value of an arraystatic ArrayArrayMath. median(Array a, int axis)Compute median value of an array along an axis (dimension)static doubleArrayMath. median(Array a, java.util.List<Range> ranges)Compute median value of an arraystatic Array[]ArrayUtil. meshgrid(Array x)Mesh gridstatic Array[]ArrayUtil. meshgrid(Array... xs)Mesh gridstatic Array[]ArrayUtil. meshgrid(Array x, Array y)Mesh gridstatic java.lang.NumberArrayMath. min(Array a)Compute minimum value of an arraystatic ArrayArrayMath. min(Array a, int axis)Compute minimum value of an array along an axis (dimension)static doubleArrayMath. min(Array a, java.util.List<Range> ranges)Compute minimum value of an arraystatic ArrayArrayMath. minimum(Array x1, Array x2)Element-wise minimum of array elements.static voidArrayMath. missingToNaN(Array a, java.lang.Number missingv)Set missing value to NaNstatic ArrayArrayMath. mod(java.lang.Number b, Array a)Array modstatic ArrayArrayMath. mod(Array a, java.lang.Number b)Array modstatic ArrayArrayMath. mod(Array a, Array b)Array modstatic ArrayArrayMath. mul(Array a, java.lang.Number b)Array multiplystatic ArrayArrayMath. mul(Array a, Array b)Array mutiplystatic ArrayArrayMath. mul(Array a, Complex b)Array multiplystatic java.util.List<Array>ArrayUtil. nonzero(Array a)Return the indices of the elements that are non-zero.static ArrayArrayMath. notEqual(Array a, java.lang.Number b)Array not equalstatic ArrayArrayMath. notEqual(Array a, Array b)Array not equalstatic ArrayArrayMath. outer(Array a, Array b)Compute the outer product of two vectors.static voidArrayMath. place(Array a, Array b, Array value)Change elements of an array based on conditional and input values.static Array[]ArrayMath. polarToCartesian(Array B, Array r)Convert poar to cartesian coordinatestatic ArrayArrayMath. polyVal(java.util.List<java.lang.Number> p, Array x)Evaluate a polynomial at specific values.static ArrayArrayMath. pow(java.lang.Number a, Array b)Array pow functionstatic ArrayArrayMath. pow(Array a, java.lang.Number b)Array pow functionstatic ArrayArrayMath. pow(Array a, Array b)Array pow functionstatic ArrayArrayMath. pow(Array a, Complex b)Array pow functionstatic ArrayArrayMath. pow(Complex b, Array a)Array pow functionstatic doubleArrayMath. prodDouble(Array a)Produce arraystatic doubleArrayMath. quantile(Array a, int aNum)Quantile functionstatic ArrayArrayMath. removeNaN(Array a)Remove NaN values in an arraystatic Array[]ArrayMath. removeNaN(Array... a)Remove NaN values in arraysstatic ArrayArrayUtil. repeat(Array a, java.util.List<java.lang.Integer> repeats)Repeat elements of an array.static ArrayArrayUtil. repeat(Array a, java.util.List<java.lang.Integer> repeats, int axis)Repeat elements of an array.static voidArrayMath. replaceValue(Array a, java.lang.Object oValue, java.lang.Object value)Replace valuestatic ArrayArrayUtil. resample_Bilinear(Array a, java.util.List<java.lang.Number> X, java.util.List<java.lang.Number> Y, java.util.List<java.lang.Number> newX, java.util.List<java.lang.Number> newY)Resample grid array with bilinear methodstatic ArrayArrayUtil. resample_Bilinear(Array a, Array X, Array Y, Array newX, Array newY)Resample grid array with bilinear methodstatic ArrayArrayUtil. resample_Neighbor(Array a, Array X, Array Y, Array newX, Array newY)Resample grid array with neighbor methodstatic ArrayArrayMath. rightShift(Array a, java.lang.Number b)Bit right shift operationstatic ArrayArrayMath. rightShift(Array a, Array b)Bit right shift operationstatic ArrayArrayMath. rolling_mean(Array x, int window, boolean center)Moving average functionstatic ArrayArrayMath. rot90(Array a, int k)Rotate an array by 90 degrees in counter-clockwise direction.static voidArrayUtil. saveASCIIFile(java.lang.String fn, Array a, int colNum, java.lang.String format, java.lang.String delimiter)Save an array data to a ASCII filestatic voidArrayUtil. saveBinFile(java.lang.String fn, Array a, java.lang.String byteOrder, boolean append, boolean sequential)Save an array data to a binary filestatic intArrayUtil. searchSorted(Array a, double v)Search sorted list indexstatic intArrayUtil. searchSorted(Array a, java.lang.Number v, boolean left)Find indices where elements should be inserted to maintain order.static ArrayArrayUtil. searchSorted(Array a, Array v, boolean left)Find indices where elements should be inserted to maintain order.static ArrayArrayMath. section(Array a, int[] origin, int[] size, int[] stride)Section arraystatic ArrayArrayMath. section(Array a, java.util.List<Range> ranges)Section arraystatic ArrayArrayMath. setSection(Array a, int[] origin, int[] shape, Array v)Set sectionstatic ArrayArrayMath. setSection(Array a, java.util.List<Range> ranges, java.lang.Number v)Set sectionstatic ArrayArrayMath. setSection(Array a, java.util.List<Range> ranges, java.lang.Object v)Set sectionstatic ArrayArrayMath. setSection(Array a, java.util.List<Range> ranges, Array v)Set sectionstatic ArrayArrayMath. setSection_List(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges, java.lang.Number v)Set sectionstatic ArrayArrayMath. setSection_List(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges, Array v)Set sectionstatic ArrayArrayMath. setSection_Mix(Array a, java.util.List<java.lang.Object> ranges, java.lang.Number v)Set sectionstatic ArrayArrayMath. setSection_Mix(Array a, java.util.List<java.lang.Object> ranges, Array v)Set sectionstatic ArrayArrayMath. setSection_Mix_Bak(Array a, java.util.List<java.lang.Object> ranges, java.lang.Number v)Set sectionstatic ArrayArrayMath. setSection_Mix_Bak(Array a, java.util.List<java.lang.Object> ranges, Array v)Set sectionstatic voidArrayMath. setValue(Array a, Array b, java.lang.Number value)Set valuestatic voidArrayMath. setValue(Array a, Array b, Array value)Set valuestatic ArrayArrayMath. sign(Array x)Returns an element-wise indication of the sign of a number.static ArrayArrayMath. sin(Array a)Sine functionstatic ArrayArrayUtil. slice(Array a, int axis, int idx)Get slice array along an axisstatic ArrayArrayUtil. slice(Array a, int axis, Array dim, double v)Get slice array along an axisstatic ArrayArrayUtil. smooth5(Array a)Smooth with 5 pointsstatic ArrayArrayUtil. smooth5(Array a, int rowNum, int colNum, double unDefData)Smooth with 5 pointsstatic ArrayArrayUtil. smooth9(Array a)Smooth with 9 pointsstatic ArrayArrayUtil. sort(Array a, java.lang.Integer axis)Sort array along an axisstatic ArrayArrayMath. sqrt(Array a)Sqrt functionstatic doubleArrayMath. std(Array a)Compute standard deviation value of an arraystatic doubleArrayMath. std(Array a, int ddof)Compute standard deviation value of an arraystatic ArrayArrayMath. std(Array a, int axis, int ddof)Compute standard deviation value of an array along an axis (dimension)static doubleArrayMath. std(Array a, java.util.List<Range> ranges, int ddof)Compute standard deviation value of an arraystatic ArrayArrayMath. sub(java.lang.Number b, Array a)Array subtractstatic ArrayArrayMath. sub(Array a, java.lang.Number b)Array subtractstatic ArrayArrayMath. sub(Array a, Array b)Array subtractstatic ArrayArrayMath. sub(Array a, Complex b)Array subtractstatic ArrayArrayMath. sub(Complex b, Array a)Array subtractstatic java.lang.NumberArrayMath. sum(Array a)Summarize arraystatic doubleArrayMath. sum(Array a, double missingValue)Summarize array skip missing valuestatic ArrayArrayMath. sum(Array a, int axis)Compute sum value of an array along an axis (dimension)static doubleArrayMath. sum(Array a, java.util.List<Range> ranges)Compute sum value of an arraystatic ArrayArrayMath. take(Array a, java.util.List<java.lang.Object> ranges)Take elements from an array along an axis.static ArrayArrayMath. take(Array a, Array condition)Extract 1D array by boolean arraystatic ArrayArrayMath. take(Array a, Array indices, java.lang.Integer axis)Take elements from an array along an axis.static ArrayArrayMath. takeValues(Array a, java.util.List<java.util.List<java.lang.Integer>> ranges)Take elements from an array.static ArrayArrayMath. tan(Array a)Tangent functionstatic ArrayArrayUtil. tile(Array a, java.util.List<java.lang.Integer> repeats)Repeat elements of an array.static ArrayArrayUtil. toBoolean(Array a)Convert array to boolean typestatic ArrayArrayUtil. toDate(Array a)Convert array to date typestatic ArrayArrayMath. toDegrees(Array a)Convert radians to degrees functionstatic ArrayArrayUtil. toDouble(Array a)Convert array to double typestatic ArrayArrayUtil. toFloat(Array a)Convert array to float typestatic ArrayArrayUtil. toInteger(Array a)Convert array to integer typestatic ArrayArrayMath. toRadians(Array a)Convert radians to degrees functionstatic doubleArrayUtil. toStation(Array data, java.util.List<java.lang.Number> xArray, java.util.List<java.lang.Number> yArray, double x, double y)Interpolate data to a station pointstatic doubleArrayUtil. toStation(Array data, java.util.List<java.lang.Number> xArray, java.util.List<java.lang.Number> yArray, double x, double y, double missingValue)Interpolate data to a station pointstatic doubleArrayUtil. toStation(Array data, Array xArray, Array yArray, double x, double y)Interpolate data to a station pointstatic doubleArrayUtil. toStation_Neighbor(Array data, java.util.List<java.lang.Number> xArray, java.util.List<java.lang.Number> yArray, double x, double y)Interpolate data to a station pointstatic doubleArrayUtil. toStation_Neighbor(Array data, java.util.List<java.lang.Number> xArray, java.util.List<java.lang.Number> yArray, double x, double y, double missingValue)Interpolate data to a station pointstatic doubleArrayUtil. toStation_Neighbor(Array data, Array xArray, Array yArray, double x, double y)Interpolate data to a station pointstatic java.lang.StringArrayUtil. toString_old(Array a)Array to stringstatic ArrayArrayMath. transpose(Array a, int dim1, int dim2)Transpose arraystatic doubleArrayMath. trapz(Array y, double dx)Integrate vector array using the composite trapezoidal rule.static ArrayArrayMath. trapz(Array a, double dx, int axis)Integrate vector array using the composite trapezoidal rule.static doubleArrayMath. trapz(Array y, double dx, java.util.List<Range> ranges)Integrate vector array using the composite trapezoidal rule.static doubleArrayMath. trapz(Array y, Array x)Integrate vector array using the composite trapezoidal rule.static ArrayArrayMath. trapz(Array a, Array x, int axis)Integrate vector array using the composite trapezoidal rule.static doubleArrayMath. trapz(Array y, Array x, java.util.List<Range> ranges)Integrate vector array using the composite trapezoidal rule.static ArrayArrayUtil. unique(Array a, java.lang.Integer axis)Find the unique elements of an array.static doubleArrayMath. var(Array a, int ddof)Compute variance value of an arraystatic ArrayArrayMath. var(Array a, int axis, int ddof)Compute variance value of an array along an axis (dimension)static doubleArrayMath. var(Array a, java.util.List<Range> ranges, int ddof)Compute variance value of an arraystatic doubleArrayMath. vdot(Array a, Array b)Return the dot product of two vectors.static ArrayArrayUtil. view(Array a)New view of array with the same data.static voidArrayUtil. writeBinFile(org.meteoinfo.common.io.EndianDataOutputStream outs, Array a, java.lang.String byteOrder, boolean sequential)Save an array data to a binary file类型变量类型为Array的org.meteoinfo.ndarray.math中的方法参数 修饰符和类型 方法 说明 static ArrayArrayUtil. concatenate(java.util.List<Array> arrays, java.lang.Integer axis)Concatenate arrays to one array along a axisstatic java.lang.Object[]ArrayUtil. findIndices(java.util.List<Array> points, Array xi)Find indicesstatic ArrayArrayUtil. interpn(java.util.List<Array> points, Array values, java.util.List<Array> xi)Multidimensional interpolation on regular grids.static java.lang.ObjectArrayUtil. interpn(java.util.List<Array> points, Array values, Array xi)Multidimensional interpolation on regular grids.static doubleArrayUtil. interpn_s(java.util.List<Array> points, Array values, Array xi)Multidimensional interpolation on regular grids.static ArrayArrayMath. mean(java.util.List<Array> alist)Compute the arithmetic mean arry from a list of arraysstatic ArrayArrayMath. sum(java.util.List<Array> alist)Compute the sum arry from a list of arrays
-