Interface ObjectCalculations
-
- All Known Subinterfaces:
BaseBigDecimalMatrix
,BaseBigIntegerMatrix
,BaseBooleanMatrix
,BaseDoubleMatrix
,BaseGenericMatrix<T>
,BaseNumberMatrix<T>
,BaseObjectMatrix
,BigDecimalMatrix
,BigDecimalMatrix2D
,BigDecimalMatrixMultiD
,BigIntegerMatrix
,BigIntegerMatrix2D
,BigIntegerMatrixMultiD
,BooleanMatrix
,BooleanMatrix2D
,ByteArrayMatrix
,ByteArrayMatrix2D
,ByteMatrix
,ByteMatrix2D
,CanPerformCalculations
,CharMatrix
,CharMatrix2D
,DenseBigDecimalMatrix
,DenseBigDecimalMatrix2D
,DenseBigDecimalMatrixMultiD
,DenseBigIntegerMatrix
,DenseBigIntegerMatrix2D
,DenseBooleanMatrix
,DenseBooleanMatrix2D
,DenseByteArrayMatrix
,DenseByteArrayMatrix2D
,DenseByteMatrix
,DenseByteMatrix2D
,DenseCharMatrix
,DenseCharMatrix2D
,DenseDoubleMatrix
,DenseDoubleMatrix2D
,DenseDoubleMatrixMultiD
,DenseFloatMatrix
,DenseFloatMatrix2D
,DenseGenericMatrix<T>
,DenseGenericMatrix2D<T>
,DenseGenericMatrixMultiD<T>
,DenseIntMatrix
,DenseIntMatrix2D
,DenseLongMatrix
,DenseLongMatrix2D
,DenseMatrix
,DenseMatrix2D
,DenseMatrixMultiD
,DenseNumberMatrix<T>
,DenseNumberMatrix2D<T>
,DenseNumberMatrixMultiD<T>
,DenseObjectMatrix
,DenseObjectMatrix2D
,DenseObjectMatrixMultiD
,DenseShortMatrix
,DenseShortMatrix2D
,DenseStringMatrix
,DenseStringMatrix2D
,DoubleMatrix
,DoubleMatrix2D
,DoubleMatrixMultiD
,FileOrDirectoryMatrix
,FloatMatrix
,FloatMatrix2D
,GenericMatrix<T>
,GenericMatrix2D<T>
,GenericMatrixMultiD<T>
,GraphMatrix<N,E>
,IntMatrix
,IntMatrix2D
,ListMatrix<T>
,LongMatrix
,LongMatrix2D
,MapMatrix<K,V>
,Matrix
,Matrix2D
,MatrixMultiD
,NumberMatrix<T>
,NumberMatrix2D<T>
,NumberMatrixMultiD<T>
,ObjectMatrix
,ObjectMatrix2D
,ObjectMatrixMultiD
,SetMatrix<A>
,ShortMatrix
,ShortMatrix2D
,SparseBigDecimalMatrix
,SparseBigDecimalMatrix2D
,SparseBigDecimalMatrixMultiD
,SparseBigIntegerMatrix
,SparseBigIntegerMatrix2D
,SparseBooleanMatrix
,SparseBooleanMatrix2D
,SparseByteArrayMatrix
,SparseByteArrayMatrix2D
,SparseByteMatrix
,SparseByteMatrix2D
,SparseCharMatrix
,SparseCharMatrix2D
,SparseDoubleMatrix
,SparseDoubleMatrix2D
,SparseDoubleMatrixMultiD
,SparseFloatMatrix
,SparseFloatMatrix2D
,SparseGenericMatrix<T>
,SparseGenericMatrix2D<T>
,SparseGenericMatrixMultiD<T>
,SparseIntMatrix
,SparseIntMatrix2D
,SparseLongMatrix
,SparseLongMatrix2D
,SparseMatrix
,SparseMatrix2D
,SparseMatrixMultiD
,SparseNumberMatrix<T>
,SparseNumberMatrix2D<T>
,SparseNumberMatrixMultiD<T>
,SparseObjectMatrix
,SparseObjectMatrix2D
,SparseObjectMatrixMultiD
,SparseShortMatrix
,SparseShortMatrix2D
,SparseStringMatrix
,SparseStringMatrix2D
,StringMatrix
,StringMatrix2D
,TextBlock
,TextSentence
,TextToken
,TreeMatrix<T>
- All Known Implementing Classes:
AbstractBigDecimalMatrix
,AbstractBigIntegerMatrix
,AbstractBooleanMatrix
,AbstractByteArrayMatrix
,AbstractByteMatrix
,AbstractCharMatrix
,AbstractCommonsMathDenseDoubleMatrix2D
,AbstractDenseBigDecimalMatrix
,AbstractDenseBigDecimalMatrix2D
,AbstractDenseBigIntegerMatrix
,AbstractDenseBigIntegerMatrix2D
,AbstractDenseBooleanMatrix
,AbstractDenseBooleanMatrix2D
,AbstractDenseByteArrayMatrix
,AbstractDenseByteArrayMatrix2D
,AbstractDenseByteMatrix
,AbstractDenseByteMatrix2D
,AbstractDenseCharMatrix
,AbstractDenseCharMatrix2D
,AbstractDenseDoubleMatrix2D
,AbstractDenseDoubleMatrixMultiD
,AbstractDenseFloatMatrix
,AbstractDenseFloatMatrix2D
,AbstractDenseGenericMatrix
,AbstractDenseGenericMatrix2D
,AbstractDenseIntMatrix
,AbstractDenseIntMatrix2D
,AbstractDenseJDBCMatrix2D
,AbstractDenseLongMatrix
,AbstractDenseLongMatrix2D
,AbstractDenseObjectMatrix
,AbstractDenseObjectMatrix2D
,AbstractDenseShortMatrix
,AbstractDenseShortMatrix2D
,AbstractDenseStringMatrix
,AbstractDenseStringMatrix2D
,AbstractDoubleMatrix
,AbstractDoubleMatrix2D
,AbstractDoubleMatrixMultiD
,AbstractFloatMatrix
,AbstractGenericMatrix
,AbstractGraphMatrix
,AbstractIntMatrix
,AbstractListMatrix
,AbstractLongMatrix
,AbstractMapMatrix
,AbstractMapMatrixList
,AbstractMapToSparseMatrixWrapper
,AbstractMapToTiledMatrix2DWrapper
,AbstractMatrix
,AbstractNumberMatrix
,AbstractObjectMatrix
,AbstractSetMatrix
,AbstractShortMatrix
,AbstractSparseBigDecimalMatrix
,AbstractSparseBigDecimalMatrix2D
,AbstractSparseBigIntegerMatrix
,AbstractSparseBigIntegerMatrix2D
,AbstractSparseBooleanMatrix
,AbstractSparseBooleanMatrix2D
,AbstractSparseByteArrayMatrix
,AbstractSparseByteArrayMatrix2D
,AbstractSparseByteMatrix
,AbstractSparseByteMatrix2D
,AbstractSparseCharMatrix
,AbstractSparseCharMatrix2D
,AbstractSparseDoubleMatrix
,AbstractSparseDoubleMatrix2D
,AbstractSparseFloatMatrix
,AbstractSparseFloatMatrix2D
,AbstractSparseGenericMatrix
,AbstractSparseGenericMatrix2D
,AbstractSparseIntMatrix
,AbstractSparseIntMatrix2D
,AbstractSparseLongMatrix
,AbstractSparseLongMatrix2D
,AbstractSparseObjectMatrix
,AbstractSparseObjectMatrix2D
,AbstractSparseShortMatrix
,AbstractSparseShortMatrix2D
,AbstractSparseStringMatrix
,AbstractSparseStringMatrix2D
,AbstractStringMatrix
,AbstractTreeMatrix
,ArrayDenseBigDecimalMatrix2D
,ArrayDenseBigIntegerMatrix2D
,ArrayDenseBooleanMatrix2D
,ArrayDenseByteMatrix2D
,ArrayDenseCharMatrix2D
,ArrayDenseDoubleMatrix2D
,ArrayDenseFloatMatrix2D
,ArrayDenseIntMatrix2D
,ArrayDenseLongMatrix2D
,ArrayDenseObjectMatrix2D
,ArrayDenseShortMatrix2D
,ArrayDenseStringMatrix2D
,AvailableProcessorsMatrix
,BenchmarkConfig
,BigDecimalCalculationMatrix
,BigIntegerCalculationMatrix
,BitSetDenseBooleanMatrix2D
,BlockDenseDoubleMatrix2D
,BooleanCalculationMatrix
,BufferedObjectMatrix
,ByteCalculationMatrix
,CharCalculationMatrix
,ClientMatrix
,ColtDenseDoubleMatrix2D
,ColtSparseDoubleMatrix2D
,CommonsMathArrayDenseDoubleMatrix2D
,CommonsMathBlockDenseDoubleMatrix2D
,DefaultDenseBigDecimalMatrix2D
,DefaultDenseBigIntegerMatrix2D
,DefaultDenseByteMatrix2D
,DefaultDenseCharMatrix2D
,DefaultDenseDoubleMatrix2D
,DefaultDenseDoubleMatrixMultiD
,DefaultDenseFloatMatrix2D
,DefaultDenseGenericMatrix2D
,DefaultDenseIntMatrix2D
,DefaultDenseLongMatrix2D
,DefaultDenseObjectMatrix2D
,DefaultDenseObjectMatrixMultiD
,DefaultDenseShortMatrix2D
,DefaultDenseStringMatrix2D
,DefaultGraphMatrix
,DefaultListMatrix
,DefaultMapMatrix
,DefaultSetMatrix
,DefaultSparseBigDecimalMatrix
,DefaultSparseBigIntegerMatrix
,DefaultSparseBooleanMatrix
,DefaultSparseByteMatrix
,DefaultSparseCharMatrix
,DefaultSparseColumnObjectMatrix2D
,DefaultSparseDoubleMatrix
,DefaultSparseDoubleVector1D
,DefaultSparseFloatMatrix
,DefaultSparseGenericMatrix
,DefaultSparseIntMatrix
,DefaultSparseLongMatrix
,DefaultSparseObjectMatrix
,DefaultSparseRowDoubleMatrix2D
,DefaultSparseRowObjectMatrix2D
,DefaultSparseShortMatrix
,DefaultSparseStringMatrix
,DefaultTextBlock
,DefaultTextSentence
,DefaultTextToken
,DefaultTiledObjectMatrix2D
,DefaultTreeMatrix
,DenseCSVStringMatrix2D
,DenseDerbyMatrix2D
,DenseFileMatrix
,DenseHSQLDBMatrix2D
,DenseMySQLMatrix2D
,DensePostgreSQLMatrix2D
,DirectoryMatrix
,DoubleCalculationMatrix
,EmptyMatrix
,FileFormatMatrix
,FileMatrix
,FloatCalculationMatrix
,HttpMatrix
,ImageMatrix
,IndexedSparseDoubleMatrix2D
,IntCalculationMatrix
,IrisMatrix
,JamaDenseDoubleMatrix2D
,JBlasDenseDoubleMatrix2D
,JDBCCatalogListMatrix
,JDBCCatalogMatrix
,JDBCMapMatrix
,JDBCSetMatrix
,JDBCSparseObjectMatrix
,La4JDenseDoubleMatrix2D
,LocalhostMatrix
,LongCalculationMatrix
,MandelbrotMatrix
,MatrixLibraries
,MatrixUIDefaults
,MemoryUsageMatrix
,MessageMatrix
,MessagesMatrix
,MortonDenseDoubleMartrix2D
,NetworkInterfaceMatrix
,NetworkMatrix
,ObjectCalculationMatrix
,ObjectTreeMatrix
,OperatingSystemMatrix
,RandomSeedMatrix
,RemoteHostMatrix
,RemoteObjectMatrixUDP
,RunningThreadsMatrix
,SerializedSparseObjectMatrix
,ServerObjectMatrixUDP
,ShortCalculationMatrix
,SparseCSVMatrix
,SparseFeatureVector
,StringCalculationMatrix
,SubnetMatrix
,SynchronizedGenericMatrix
,SystemEnvironmentMatrix
,SystemPropertiesMatrix
,SystemTimeMatrix
,TextContentMatrix
,TimeSeriesMatrix
,UJMPPluginsMatrix
,UJMPSettings
,VecMathDenseDoubleMatrix2D
,VolatileSparseObjectMatrix
,WaveMatrix
,WelcomeMatrix
,ZipEntryMatrix
,ZipFileMatrix
public interface ObjectCalculations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Matrix
bootstrap(Calculation.Ret returnType)
Matrix
bootstrap(Calculation.Ret returnType, int count)
Matrix
convert(ValueType newValueType)
Creates a copy of the matrix with the desired type for matrix entries.Matrix
delete(Calculation.Ret returnType, long[]... selection)
Delete rows and columns in the Matrix and returns a link to it.Matrix
delete(Calculation.Ret returnType, java.lang.String selection)
Deletes rows and columns in the Matrix and returns a link to it.Matrix
delete(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number>... selection)
Delete rows and columns in the Matrix and returns a link to it.Matrix
deleteColumns(Calculation.Ret returnType, long... colums)
Deletes columns in the Matrix and returns a link to it.Matrix
deleteColumns(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number> columns)
Deletes columns in the Matrix and returns a link to it.Matrix
deleteRows(Calculation.Ret returnType, long... rows)
Deletes rows in the Matrix and returns a link to it.Matrix
deleteRows(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number> rows)
Deletes rows in the Matrix and returns a link to it.Matrix
diag(Calculation.Ret returnType)
Matrix
extractAnnotation(Calculation.Ret returnType, int dimension)
Generates annotation such as row or column labels from the content of this matrix.Matrix
fill(Calculation.Ret ret, java.lang.Object value)
Returns a matrix with equal size, where all entries are set to a desired value.Matrix
flipdim(Calculation.Ret returnType, int dimension)
Matrix
includeAnnotation(Calculation.Ret returnType, int dimension)
Matrix
replace(Calculation.Ret returnType, java.lang.Object search, java.lang.Object replacement)
Replaces matching values in the matrix with another valueMatrix
reshape(Calculation.Ret returnType, long... newSize)
Matrix
select(Calculation.Ret returnType, long[]... selection)
Selects rows and columns in the Matrix and returns a link to it.Matrix
select(Calculation.Ret returnType, java.lang.String selection)
Selects rows and columns in the Matrix and returns a link to it.Matrix
select(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number>... selection)
Selects rows and columns in the Matrix and returns a link to it.Matrix
selectColumns(Calculation.Ret returnType, long... colums)
Selects columns in the Matrix and returns a link to it.Matrix
selectColumns(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number> columns)
Selects columns in the Matrix and returns a link to it.Matrix
selectRows(Calculation.Ret returnType, long... rows)
Selects rows in the Matrix and returns a link to it.Matrix
selectRows(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number> rows)
Selects rows in the Matrix and returns a link to it.Matrix
shuffle(Calculation.Ret returnType)
Matrix
sortrows(Calculation.Ret returnType, long column, boolean reverse)
Matrix
squeeze(Calculation.Ret returnType)
Matrix
subMatrix(Calculation.Ret returnType, long... minAndMaxCoordinates)
Matrix
swap(Calculation.Ret returnType, int dimension, long pos1, long pos2)
Matrix
toColumnVector(Calculation.Ret returnType)
Matrix
toRowVector(Calculation.Ret returnType)
Matrix
transpose()
Returns the transpose of the Matrix, where rows and columns are exchanged.Matrix
transpose(Calculation.Ret returnType)
Returns the transpose of the Matrix, where rows and columns are exchanged.Matrix
transpose(Calculation.Ret returnType, int dimension1, int dimension2)
Matrix
tril(Calculation.Ret returnType, int k)
Matrix
triu(Calculation.Ret returnType, int k)
Matrix
unique(Calculation.Ret returnType)
Matrix
uniqueValueCount(Calculation.Ret returnType, int dimension)
-
-
-
Method Detail
-
sortrows
Matrix sortrows(Calculation.Ret returnType, long column, boolean reverse)
-
shuffle
Matrix shuffle(Calculation.Ret returnType)
-
bootstrap
Matrix bootstrap(Calculation.Ret returnType)
-
bootstrap
Matrix bootstrap(Calculation.Ret returnType, int count)
-
extractAnnotation
Matrix extractAnnotation(Calculation.Ret returnType, int dimension)
Generates annotation such as row or column labels from the content of this matrix. This is useful for example for data imported from CSV files with labels in the first line.- Parameters:
returnType
- Specify whether to return a new matrix, or a linkdimension
- Which axis should be shortened to extract the labels. E.g. if you want column labels, you must specifyMatrix.ROW
, which does not seem very intuitive at first glance. However, if you're dealing with multi-dimensional data, this becomes more clear. If you want annotation generated for all dimensions, you can specifyMatrix.ALL
or omit the dimensions parameter.- Returns:
- new Matrix with annotation generated from content. @
-
includeAnnotation
Matrix includeAnnotation(Calculation.Ret returnType, int dimension)
-
reshape
Matrix reshape(Calculation.Ret returnType, long... newSize)
-
squeeze
Matrix squeeze(Calculation.Ret returnType)
-
unique
Matrix unique(Calculation.Ret returnType)
-
uniqueValueCount
Matrix uniqueValueCount(Calculation.Ret returnType, int dimension)
-
tril
Matrix tril(Calculation.Ret returnType, int k)
-
triu
Matrix triu(Calculation.Ret returnType, int k)
-
toColumnVector
Matrix toColumnVector(Calculation.Ret returnType)
-
toRowVector
Matrix toRowVector(Calculation.Ret returnType)
-
swap
Matrix swap(Calculation.Ret returnType, int dimension, long pos1, long pos2)
-
fill
Matrix fill(Calculation.Ret ret, java.lang.Object value)
Returns a matrix with equal size, where all entries are set to a desired value.- Parameters:
value
- fill with this value- Returns:
- Matrix with ones.
-
replace
Matrix replace(Calculation.Ret returnType, java.lang.Object search, java.lang.Object replacement)
Replaces matching values in the matrix with another value- Parameters:
returnType
- Select whether a new or a linked Matrix is returned, or if the operation is performed on the original Matrixsearch
- Object to search forreplacement
- Object used to replace the original value- Returns:
- matrix with modified entries @
-
transpose
Matrix transpose()
Returns the transpose of the Matrix, where rows and columns are exchanged. This works also if the Matrix has more than two dimensions.- Returns:
- transposed Matrix.
-
transpose
Matrix transpose(Calculation.Ret returnType)
Returns the transpose of the Matrix, where rows and columns are exchanged. This works also if the Matrix has more than two dimensions.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.- Returns:
- transposed Matrix.
-
transpose
Matrix transpose(Calculation.Ret returnType, int dimension1, int dimension2)
-
flipdim
Matrix flipdim(Calculation.Ret returnType, int dimension)
-
diag
Matrix diag(Calculation.Ret returnType)
-
convert
Matrix convert(ValueType newValueType)
Creates a copy of the matrix with the desired type for matrix entries.- Parameters:
newValueType
- defines the new format of the matrix- Returns:
- Matrix with the same entries in the new format
-
select
Matrix select(Calculation.Ret returnType, long[]... selection)
Selects rows and columns in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns- Returns:
- Link to original Matrix with desired rows and columns @
-
delete
Matrix delete(Calculation.Ret returnType, long[]... selection)
Delete rows and columns in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns- Returns:
- Link to original Matrix with desired rows and columns @
-
select
Matrix select(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number>... selection)
Selects rows and columns in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns- Returns:
- Link to original Matrix with desired rows and columns @
-
delete
Matrix delete(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number>... selection)
Delete rows and columns in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns- Returns:
- Link to original Matrix with desired rows and columns @
-
selectRows
Matrix selectRows(Calculation.Ret returnType, long... rows)
Selects rows in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows- Returns:
- Link to original Matrix with desired rows @
-
deleteRows
Matrix deleteRows(Calculation.Ret returnType, long... rows)
Deletes rows in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows- Returns:
- Link to original Matrix with desired rows @
-
selectRows
Matrix selectRows(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number> rows)
Selects rows in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows- Returns:
- Link to original Matrix with desired rows @
-
deleteRows
Matrix deleteRows(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number> rows)
Deletes rows in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows- Returns:
- Link to original Matrix with desired rows @
-
selectColumns
Matrix selectColumns(Calculation.Ret returnType, long... colums)
Selects columns in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns- Returns:
- Link to original Matrix with desired columns @
-
deleteColumns
Matrix deleteColumns(Calculation.Ret returnType, long... colums)
Deletes columns in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns- Returns:
- Link to original Matrix with desired columns @
-
selectColumns
Matrix selectColumns(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number> columns)
Selects columns in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns- Returns:
- Link to original Matrix with desired columns @
-
deleteColumns
Matrix deleteColumns(Calculation.Ret returnType, java.util.Collection<? extends java.lang.Number> columns)
Deletes columns in the Matrix and returns a link to it.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns- Returns:
- Link to original Matrix with desired columns @
-
select
Matrix select(Calculation.Ret returnType, java.lang.String selection)
Selects rows and columns in the Matrix and returns a link to it. Selections can be made in Matlab/Octave style or similar, e.g. "1,2,5-6,8:5;*". Dimensions are separated by ';'. Selections in one dimension are separated by spaces or ','. Ranges are selected using '-' or ':'. A whole dimension can be selected with '*'.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.selection
- String defining the selection- Returns:
- Link to original Matrix with desired rows and columns @
-
delete
Matrix delete(Calculation.Ret returnType, java.lang.String selection)
Deletes rows and columns in the Matrix and returns a link to it. Selections can be made in Matlab/Octave style or similar, e.g. "1,2,5-6,8:5;*". Dimensions are separated by ';'. Selections in one dimension are separated by spaces or ','. Ranges are selected using '-' or ':'. A whole dimension can be selected with '*'.- Parameters:
returnType
- Defines if a new Matrix or a link should be returned.minAndMaxCoordinates
- start and end coordinates- Returns:
- Link to original Matrix with desired rows and columns deleted @
-
subMatrix
Matrix subMatrix(Calculation.Ret returnType, long... minAndMaxCoordinates)
-
-