The unit OPENARRAYS supports open arrays of dimensionality one to four. The unit contains many overloaded functions which allow you to manage and acccess integer and double precision open arrays.
- supports integer and double precision open arrays in one to four dimensions
- copying and filling of arrays
- matrix arithmetics (add, subtract, mulitply, accumulate, trace, cross products, etc.)
- determination of statistical parameters of the array elements
- discretization of values
What's new:
- Release 12.0 [Dec-12, 2023]
- additional overloaded versions of DichotomizeArray
- bug fix: DichotomizeArray created result arrays which were short by one element
- the new function CreateMaskShape supports the creation of array masks
- renamed FillArrayRix to FillArraySerial and extended the function by two additional parameters to specify both and offset and an increment
- implemented the two functions Copy2DColTo1DArray and Copy2DRowTo1DArray to copy data from 2D to 1D arrays
- CopyVectorToArrayColumn/CopyToArrayRow are renamed to CopyToArrayColumn/CopyToArrayRow
- the functions NormalizeColumns and NormalizeRows normalize the rows and the columns of an array
- bug fix: EdgeVector calculated wrong mean if Orient was orHoriz
- implemented the function EigenDecomposition to calculate the eigenvectors and eigenvalues of a symmetric matrix
- implemented the functions LUDecomposition and LUPDecomposition
- implemented the new function PermuteArray to permute the columns/rows of an array
- the method MultiplyArrays has been extended by overloaded versions allowing to mix integer and double 2D arrays
- the new procedures MeanCenterColumnsOfArray and MeanCenterRowsOfArray support the mean-centering of 2D arrays
- the new function RescaleArray allows to normalize the data in an array
- a new overloaded version of the function PercentileArray has been added
- the new functions LocalMean and LocalMedian calculate the mean and the median of an array around a specific cell
- the function CountTrueCellsOfArray has been extended to restrict the range where the TRUE values are counted
- the new function MeanAbsDev calculates the mean absolute deviation
- the function PercentileArray now supports integer arrays as well
- the new functions IsMonotone and IsStrictlyMonotone check whether the values of a one-dimensional array are (strictly) monotone
- the new function ListCellPositions converts a boolean array into cell indices
- the new function ReciprocalArray calculates the reciprocal values of all elements of an array
- the new function Resample2DArray resamples a two dimensional array
- the new function CheckLinearity checks a series of values for equidistance
- the new procedure SerializeArray serializes two-dimenional arrays
- the new function BoundingRect determines the bounding rectangle of non-zero regions in arrays
- the functions MinArray and MaxArray now support more overloaded options returning the indices of the found minima/maxima
- the new function SumArrayMasked calculates the sum of non-masked cells
- the function EdgeVector has been extended to calculate values from selected columns/rows; the edge operation has been extended by the standard deviation
- Release 10.7 [Aug-24, 2020]
- the function IsDichotomous tests whether the values of an array are dichotomous
- the function SortAndRemoveDuplicates sorts array values and removes duplicates
- the function SaveArrayAsImg allows to save a matrix as an image (BMP, PNG, JPG or clipboard)
- the functions ReadBinaryArrayHeader, LoadBinaryArray and SaveBinaryArray have been extended to support 3D and 4D matrices
- the functions RemoveColumn and RemoveRow delete columns and rows of an array
- the function CloneAndReverseArray clones an array and reverses the order of the elements
- the function FindInArray search for a value in an array (both integers and strings)
- the function SumOfSquaredDiffs calculates the sum of squared differences
- the function DistanceOfObjects calculates a multivariate distance
- the function FillArrayMasked allows to fill masked regions of a 2-dimensional matrix
- the functions SortArray and ShuffleArray sorts and randomizes one-dimensional arrays, respectively
- the function CalcHatMatrix calculates the hat matrix of a two-dimensional array
- the function EdgeVector calculates various parameters along the edge of a two-dimensional array
- the functions LoadBinaryArray and SaveBinaryArray load and save the 2D open arrays in binary form
- the function ReadBinaryArrayHeader reads the header of a binary array file
- BoolToNumArray converts a boolean array to a dichotomous numeric array
- the function FloodFillArray implements a flood filling algorithm for matrices
- DichotomizeArray extended to support more array types
- implemented an overloaded version of PercentileArray which supports 2-dim. arrays
- FindInSortedArray allows a quick search for array elements
- CloneArray extended to deal with single precision arrays
- InvertArray inverts boolean arrays
- MinMaxArray extended to TSingleArray
- MinArray extended to return the found positions of the minima for TIntArray and TInt2DArray
- MaxArray extended to support TInt3DArray and TInt4DArray
- PercentileArray calculates a quantile of the array values
- FrequDistOfArray calculates the frequency distribution of array values
- DichotomizeArray allows to create a boolean matrix from a numeric matrix
- FillArrayRix fills the array with a running index
- LoadArray loads data from files previously stored by StoreArray
- the functions CopyVectorToArrayColumn and CopyVectorToArrayRow copy a vector to an array
- the function EqualArrays compares two arrays
- bug fix: FillArray of boolean array did not work correctly
- Release 10.6 [Mar-09, 2018]
- The unit OPENARRAYS is now available for all supported compilers, proving the following functions:
AbsValArray, AccumulateArray, AddArrays, AddScalarToArray, CloneArray, CopyArray, CopyArrayColumn, CopyArrayRow, CountTrueCellsOfArray, CountValues, DiscretizeArray, FillArray, FillDiagArray, FillRandomNormal, FillRandomUniform, FlipDimArray, IncArray, MaxArray, MeanArray, MeanVarArray, MinArray, MinMaxArray, MultiplyArrayByScalar, MultiplyArrays, MultiplyArraysElemw, StdDevArray, StoreArray, SubtractArrays, TraceOfArray, TransposeArray, VectorCrossProduct, VectorDotProduct
- The unit OPENARRAYS is now available for all supported compilers, proving the following functions: