类 Matrix
java.lang.Object
org.wlld.matrixTools.MatrixOperation
org.wlld.matrixTools.Matrix
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidclear()清除矩阵数据copy()doublegetAVG()计算全矩阵元素平均值getColumn(int y) 获取列向量doublegetDet()求矩阵的行列式 递归算法double[][]doublegetNumber(int x, int y) 取矩阵的数值返回一个带坐标的矩阵字符串getRow(int x) 获取行向量doublegetSigmaByVector(boolean isRow, int index) 计算矩阵中某一行向量或者列向量所有元素的和getSonOfMatrix(int x, int y, int xSize, int ySize) 将矩阵分块返回一个矩阵字符串intgetX()获取行数intgetY()获取列数boolean是否为单行booleanisVector()是否是一个向量矩阵 单行和单列矩阵都是向量矩阵booleanisZero()是否是一个单元素矩阵void给矩阵设置数据voidsetNub(int x, int y, double number) 给矩阵设置值从类继承的方法 org.wlld.matrixTools.MatrixOperation
add, adjointMatrix, algebraicCofactor, convolution, errorNub, getEDist, getEDistByMatrix, getInverseMatrix, getKernelNub, getLinearRegression, getNorm, getNormCos, getPoolVector, getSdByMatrix, im2col, innerProduct, inverseNumber, ListToMatrix, listToRowVector, listToRowVector, mathAdd, mathDiv, mathMul, mathMulBySelf, mathSub, matrixMulPd, matrixPointDiv, matrixToList, matrixToVector, mulMatrix, push, pushVector, reverseIm2col, rowVectorToList, sub, transPosition
-
构造器详细资料
-
Matrix
public Matrix(int x, int y) 初始化矩阵- 参数:
x- 行数y- 列数
-
Matrix
-
-
方法详细资料
-
getX
public int getX()获取行数- 返回:
- 获取行数
-
getY
public int getY()获取列数- 返回:
- 获取列数
-
getAVG
public double getAVG()计算全矩阵元素平均值- 返回:
- 返回当前矩阵全部元素的平均值
-
getMatrix
public double[][] getMatrix() -
isRowVector
public boolean isRowVector()是否为单行- 返回:
- true表示此矩阵为一个单行矩阵
-
isVector
public boolean isVector()是否是一个向量矩阵 单行和单列矩阵都是向量矩阵- 返回:
- true表示此矩阵为一个向量矩阵
-
isZero
public boolean isZero()是否是一个单元素矩阵- 返回:
- true表示是里面只有一个元素
-
clear
public void clear()清除矩阵数据 -
getDet
-
setAll
-
getSonOfMatrix
将矩阵分块- 参数:
x- 要分块的x坐标y- 要分块的y坐标xSize- 分块矩阵的宽度ySize- 分块矩阵的长度- 返回:
- 返回分块后的矩阵
-
getRow
-
getColumn
-
getString
-
getPositionString
-
setNub
-
copy
-
getNumber
-
getSigmaByVector
-