|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectCalculations
Method Summary | |
---|---|
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 |
copy()
Deprecated. Please do not use this method anymore, it will be removed. use matrix.clone() instead |
Matrix |
delete(Calculation.Ret returnType,
Collection<? extends Number>... selection)
Delete rows and columns in the Matrix and returns a link to it. |
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,
String selection)
Deletes rows and columns in the Matrix and returns a link to it. |
Matrix |
deleteColumns(Calculation.Ret returnType,
Collection<? extends Number> columns)
Deletes 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 |
deleteRows(Calculation.Ret returnType,
Collection<? extends Number> rows)
Deletes rows 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 |
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,
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,
Object search,
Object replacement)
Replaces matching values in the matrix with another value |
Matrix |
reshape(Calculation.Ret returnType,
long... newSize)
|
Matrix |
select(Calculation.Ret returnType,
Collection<? extends Number>... selection)
Selects rows and columns in the Matrix and returns a link to it. |
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,
String selection)
Selects rows and columns in the Matrix and returns a link to it. |
Matrix |
selectColumns(Calculation.Ret returnType,
Collection<? extends Number> columns)
Selects 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 |
selectRows(Calculation.Ret returnType,
Collection<? extends Number> rows)
Selects rows 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 |
shuffle(Calculation.Ret returnType)
|
Matrix |
sortrows(Calculation.Ret returnType,
long column,
boolean reverse)
|
Matrix |
squeeze(Calculation.Ret returnType)
|
Matrix |
subMatrix(Calculation.Ret returnType,
long startRow,
long startColumn,
long endRow,
long endColumn)
|
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 |
---|
Matrix sortrows(Calculation.Ret returnType, long column, boolean reverse) throws MatrixException
MatrixException
Matrix shuffle(Calculation.Ret returnType) throws MatrixException
MatrixException
Matrix bootstrap(Calculation.Ret returnType) throws MatrixException
MatrixException
Matrix bootstrap(Calculation.Ret returnType, int count) throws MatrixException
MatrixException
Matrix extractAnnotation(Calculation.Ret returnType, int dimension) throws MatrixException
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 specify
Matrix.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 specify
Matrix.ALL
or omit the dimensions parameter.
MatrixException
Matrix includeAnnotation(Calculation.Ret returnType, int dimension) throws MatrixException
MatrixException
Matrix reshape(Calculation.Ret returnType, long... newSize) throws MatrixException
MatrixException
Matrix squeeze(Calculation.Ret returnType) throws MatrixException
MatrixException
Matrix unique(Calculation.Ret returnType) throws MatrixException
MatrixException
Matrix uniqueValueCount(Calculation.Ret returnType, int dimension) throws MatrixException
MatrixException
Matrix tril(Calculation.Ret returnType, int k) throws MatrixException
MatrixException
Matrix triu(Calculation.Ret returnType, int k) throws MatrixException
MatrixException
Matrix toColumnVector(Calculation.Ret returnType) throws MatrixException
MatrixException
Matrix toRowVector(Calculation.Ret returnType) throws MatrixException
MatrixException
Matrix swap(Calculation.Ret returnType, int dimension, long pos1, long pos2)
Matrix fill(Calculation.Ret ret, Object value) throws MatrixException
value
- fill with this value
MatrixException
Matrix replace(Calculation.Ret returnType, Object search, Object replacement) throws MatrixException
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
MatrixException
Matrix transpose() throws MatrixException
MatrixException
Matrix transpose(Calculation.Ret returnType) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.
MatrixException
Matrix transpose(Calculation.Ret returnType, int dimension1, int dimension2) throws MatrixException
MatrixException
Matrix flipdim(Calculation.Ret returnType, int dimension)
Matrix copy() throws MatrixException
matrix.clone()
instead
MatrixException
Matrix convert(ValueType newValueType) throws MatrixException
newValueType
- defines the new format of the matrix
MatrixException
Matrix select(Calculation.Ret returnType, long[]... selection) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns
MatrixException
Matrix delete(Calculation.Ret returnType, long[]... selection) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns
MatrixException
Matrix select(Calculation.Ret returnType, Collection<? extends Number>... selection) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns
MatrixException
Matrix delete(Calculation.Ret returnType, Collection<? extends Number>... selection) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.selection
- selected rows and columns
MatrixException
Matrix selectRows(Calculation.Ret returnType, long... rows) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows
MatrixException
Matrix deleteRows(Calculation.Ret returnType, long... rows) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows
MatrixException
Matrix selectRows(Calculation.Ret returnType, Collection<? extends Number> rows) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows
MatrixException
Matrix deleteRows(Calculation.Ret returnType, Collection<? extends Number> rows) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.rows
- selected rows
MatrixException
Matrix selectColumns(Calculation.Ret returnType, long... colums) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns
MatrixException
Matrix deleteColumns(Calculation.Ret returnType, long... colums) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns
MatrixException
Matrix selectColumns(Calculation.Ret returnType, Collection<? extends Number> columns) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns
MatrixException
Matrix deleteColumns(Calculation.Ret returnType, Collection<? extends Number> columns) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.columns
- selected columns
MatrixException
Matrix select(Calculation.Ret returnType, String selection) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.selection
- String defining the selection
MatrixException
Matrix delete(Calculation.Ret returnType, String selection) throws MatrixException
returnType
- Defines if a new Matrix or a link should be returned.selection
- String defining the selection
MatrixException
Matrix subMatrix(Calculation.Ret returnType, long startRow, long startColumn, long endRow, long endColumn) throws MatrixException
MatrixException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |