CompressedArray2D class
Usage of this class: Invoke the constructor. Invoke compress.
The compression result is cvalsPos and cvalsNeg.
See README.md
of this package about when this class should be employed.
Constructors
Properties
-
cvalsNeg
↔ List<
Float64List> -
compression result
read / write
-
cvalsPos
↔ List<
Float64List> -
compression result
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
compress(
List< Float64List> yValues2D, int row1, int row2, int col1, int col2, int nrowsNew, int ncolsNew, bool negLevels) → void -
Compresses the submatrix of the matrix
yValues2D
given byrow1
,row2
,col1
,col2
to a matrix of sizenrowsNew, ncolsNew
. All indices are meant inclusive. Returns the result in cvalsPos and cvalsNeg, both representing lists of rows (cvalsNeg remains null if negLevels is false).negLevels
= true means get also a compression of the negative values (result is cvalsNeg), false means get only a compression of the positive values (result is cvalsPos). cvalsPos only contains positive or zero values, and zeroes are filled in where formerly were negative values. cvalsNeg only contains negative or zero values, and zeroes are filled in where formerly were positive values. Note: The index inside a row is the col index and counts the cols. cvalsPos and cvalsNeg will remain null if unsuitable input parameters are specified. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Methods
-
computeCellsize(
int row1, int row2, int col1, int col2, int nrowsNew, int ncolsNew) → List< double> -
Used by compress: Returns the cellsize
cellsizeRow, cellsizeCol
(corresponding to the interval size in 1D). Returns null is nothing to compress.