Package com.github.rcaller.datatypes
Class RealMatrix
- java.lang.Object
-
- com.github.rcaller.datatypes.RealMatrix
-
public class RealMatrix extends Object
-
-
Constructor Summary
Constructors Constructor Description RealMatrix(RService service)RealMatrix(String pathToR, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getColumn(int column)double[][]getColumns(int[] columns)double[][]getData()doublegetDeterminant()double[]getDiagonal()int[]getDimensions()double[]getEigenValues()RealMatrixgetEigenVectors()RealMatrixgetInverse()RCallergetRCaller()double[]getRow(int row)double[][]getRows(int[] rows)SVDgetSVD()doublegetTrace()RealMatrixgetTranspose()RealMatrixproduct(double[][] another)RealMatrixproduct(RealMatrix another)RealMatrixproductWithScaler(double scaler)voidsetData(double[][] data)RealMatrixsubtract(double[][] another)RealMatrixsubtract(RealMatrix another)RealMatrixsum(double[][] another)RealMatrixsum(RealMatrix another)
-
-
-
Method Detail
-
getRCaller
public RCaller getRCaller()
-
setData
public void setData(double[][] data)
-
getDimensions
public int[] getDimensions()
-
getData
public double[][] getData()
-
getColumn
public double[] getColumn(int column)
-
getColumns
public double[][] getColumns(int[] columns)
-
getRow
public double[] getRow(int row)
-
getRows
public double[][] getRows(int[] rows)
-
getDeterminant
public double getDeterminant()
-
getInverse
public RealMatrix getInverse()
-
getDiagonal
public double[] getDiagonal()
-
getTrace
public double getTrace()
-
getTranspose
public RealMatrix getTranspose()
-
product
public RealMatrix product(double[][] another)
-
product
public RealMatrix product(RealMatrix another)
-
sum
public RealMatrix sum(double[][] another)
-
sum
public RealMatrix sum(RealMatrix another)
-
productWithScaler
public RealMatrix productWithScaler(double scaler)
-
subtract
public RealMatrix subtract(double[][] another)
-
subtract
public RealMatrix subtract(RealMatrix another)
-
getEigenValues
public double[] getEigenValues()
-
getEigenVectors
public RealMatrix getEigenVectors()
-
getSVD
public SVD getSVD()
-
-