|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.mklab.nfc.matrix.AbstractGrid<M>
org.mklab.nfc.matrix.AbstractFundamentalMatrix<M>
org.mklab.nfc.matrix.AbstractMatrix<M>
M - 実際の行列の型public abstract class AbstractMatrix<M extends Matrix>
行列を統一的に扱うためのクラスです。
| コンストラクタの概要 | |
|---|---|
protected |
AbstractMatrix()
子クラスから呼ばれ0*0の行列を生成します。 |
protected |
AbstractMatrix(int rowSize,
int columnSize)
子クラスから呼ばれ rowSize * columnSize の行列を生成します。 |
| メソッドの概要 | |
|---|---|
Matrix |
add(Matrix value)
valueとの和を返します。 |
Matrix |
covariance(Matrix value)
opponentとの共分散行列を返します。 |
M |
createOnes()
同サイズの全成分が1である行列を生成します。 |
M |
createOnes(int size)
size*sizeの全成分が1である行列を生成します。 |
M |
createOnes(int rowNumber,
int columnNumber,
Grid block)
行列 blockのrowNumber*columnNumber
倍の全成分が1である行列を生成します。 |
M |
createUnit()
同サイズの単位行列を生成します。 |
M |
createUnit(int size)
size*sizeの単位行列を生成します。 |
M |
createUnit(int rowNumber,
int columnNumber,
Grid block)
行列 blockのrowNumber*columnNumber
倍の単位行列を生成します。 |
M |
createZero()
同サイズの零行列を生成します。 |
M |
createZero(int size)
size*sizeの零行列を生成します。 |
M |
createZero(int rowNumber,
int columnNumber,
Grid block)
行列 blockのrowNumber*columnNumber
倍の零行列を生成します。 |
Matrix |
divide(Matrix value)
行列 valueの逆行列との積(this*value -1 )を返します。 |
Matrix |
divideElementWise(Matrix value)
valueとの成分毎の商を成分にもつ行列を返します。 |
boolean |
isTransformableFrom(Matrix value)
引数で与えられた型から、この型へ変換可能か判定します。 |
boolean |
isTransformableTo(Matrix value)
この型から引数で与えられた型へ変換可能か判定します。 |
boolean |
isUnit()
単位行列であるか判定します。 |
boolean |
isZero()
零行列(全ての成分がデフォルトの初期値)であるか判定します。 |
Matrix |
leftDivide(double value)
逆行列と実数 valueの積(this -1
*value)を返します。 |
Matrix |
leftDivide(int value)
逆行列と整数 valueの積(this -1
*value)を返します。 |
Matrix |
leftDivide(Matrix value)
逆行列と行列 valueの積(this -1
*value)を返します。 |
Matrix |
leftDivide(Scalar<?> value)
逆行列とスカラー this -1
*value)を返します。 |
Matrix |
leftDivideElementWise(Matrix value)
valueとの成分毎の左からの商を成分にもつ行列を返します。 |
Matrix |
multiply(Matrix value)
行列 valueとの積(this*value)を返します。 |
Matrix |
multiplyElementWise(Matrix value)
valueとの成分毎の積を成分にもつ行列を返します。 |
Matrix |
power(int order)
整数order乗( this order )を返します。 |
Matrix |
powerElementWise(Matrix order)
成分毎に累乗します。 |
M |
roundToZeroElementWise()
絶対値が小さい成分を0に丸めます。 |
M |
shiftLeft(int number)
全ての成分を左方向へシフトします。 |
M |
shiftUp(int number)
全ての成分を上方向へシフトします。 |
Matrix |
subtract(Matrix value)
valueとの差を返します。 |
Matrix |
transformFrom(Matrix value)
引数で与えられた型からこの型へ変換します。 |
Matrix |
transformTo(Matrix value)
この型から引数で与えられた型へ変換します。 |
protected static Matrix[] |
transformToSameClass(Matrix m1,
Matrix m2)
2個の行列を同じ型の行列に変換します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| インタフェース org.mklab.nfc.matrix.Grid から継承されたメソッド |
|---|
clone, count, exchangeColumn, exchangeRow, getColumnSize, getElementAlignment, getElementFormat, getPrintingElementsString, getPrintingString, getRowSize, hasSameColumnSize, hasSameRowSize, isEmpty, isSameSize, isSquare, length, print, print, print, printElements, printElements, removeColumnVector, removeColumnVectors, removeColumnVectors, removeRowVector, removeRowVectors, removeRowVectors, setElementAlignment, setElementFormat |
| コンストラクタの詳細 |
|---|
protected AbstractMatrix()
実際には作成されずに、成分数を0*0にするだけです。
protected AbstractMatrix(int rowSize,
int columnSize)
rowSize * columnSize の行列を生成します。
(実際には作成されずに、成分数を rowSize * columnSize にするだけです。)
rowSize - 行の数columnSize - 列の数| メソッドの詳細 |
|---|
public boolean isZero()
Grid の記述:
Grid 内の isZeroGrid.isZero()public boolean isUnit()
Matrix の記述:
Matrix 内の isUnitMatrix.isUnit()public M createZero()
Matrix の記述:
Matrix 内の createZeroMatrix.createZero()public M createZero(int size)
Matrix の記述:size*sizeの零行列を生成します。
Matrix 内の createZerosize - サイズ指定
Matrix.createZero(int)
public M createZero(int rowNumber,
int columnNumber,
Grid block)
Matrix の記述:blockのrowNumber*columnNumber
倍の零行列を生成します。
Matrix 内の createZerorowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber*
columnNumber倍の零行列Matrix.createZero(int, int, org.mklab.nfc.matrix.Grid)public M createUnit()
Matrix の記述:
Matrix 内の createUnitMatrix.createUnit()public M createUnit(int size)
Matrix の記述:size*sizeの単位行列を生成します。
Matrix 内の createUnitsize - サイズ指定
Matrix.createUnit(int)
public M createUnit(int rowNumber,
int columnNumber,
Grid block)
Matrix の記述:blockのrowNumber*columnNumber
倍の単位行列を生成します。
Matrix 内の createUnitrowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber*
columnNumber倍の単位行列Matrix.createUnit(int, int, org.mklab.nfc.matrix.Grid)public M createOnes()
Matrix の記述:
Matrix 内の createOnesMatrix.createOnes()public M createOnes(int size)
Matrix の記述:size*sizeの全成分が1である行列を生成します。
Matrix 内の createOnessize - サイズ指定
Matrix.createOnes(int)
public M createOnes(int rowNumber,
int columnNumber,
Grid block)
Matrix の記述:blockのrowNumber*columnNumber
倍の全成分が1である行列を生成します。
Matrix 内の createOnesrowNumber - 行方向の倍数columnNumber - 列方向の倍数block - 基本となる行列
blockのrowNumber*
columnNumber倍の全成分が1である行列Matrix.createOnes(int, int, org.mklab.nfc.matrix.Grid)public M shiftUp(int number)
Matrix の記述:
Matrix 内の shiftUpnumber - シフトで進む数
Matrix.shiftUp(int)public M shiftLeft(int number)
Matrix の記述:
Matrix 内の shiftLeftnumber - シフトで進む数
Matrix.shiftLeft(int)public M roundToZeroElementWise()
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の roundToZeroElementWiseMatrixElementWiseOperator.roundToZeroElementWise()public Matrix leftDivide(int value)
Matrix の記述:valueの積(this -1
*value)を返します。
Matrix 内の leftDividevalue - 割る整数
Matrix.leftDivide(int)public Matrix leftDivide(double value)
Matrix の記述:valueの積(this -1
*value)を返します。
Matrix 内の leftDividevalue - 割る実数
Matrix.leftDivide(double)public Matrix leftDivide(Scalar<?> value)
Matrix の記述:this -1
*value)を返します。
Matrix 内の leftDividevalue - スカラー
valueの積Matrix.leftDivide(org.mklab.nfc.scalar.Scalar)public Matrix power(int order)
Matrix の記述:this order )を返します。
Matrix 内の powerorder - 指数
Matrix.power(int)public boolean isTransformableTo(Matrix value)
Matrix の記述:
Matrix 内の isTransformableTovalue - 変換先
Matrix.isTransformableTo(org.mklab.nfc.matrix.Matrix)public Matrix transformTo(Matrix value)
Matrix の記述:
Matrix 内の transformTovalue - 変換先
Matrix.transformTo(org.mklab.nfc.matrix.Matrix)public boolean isTransformableFrom(Matrix value)
Matrix の記述:
Matrix 内の isTransformableFromvalue - 変換元
Matrix.isTransformableFrom(org.mklab.nfc.matrix.Matrix)public Matrix transformFrom(Matrix value)
Matrix の記述:
Matrix 内の transformFromvalue - 変換元
Matrix.transformFrom(org.mklab.nfc.matrix.Matrix)public Matrix leftDivideElementWise(Matrix value)
MatrixElementWiseOperator の記述:valueとの成分毎の左からの商を成分にもつ行列を返します。
MatrixElementWiseOperator 内の leftDivideElementWisevalue - 割られる行列
MatrixElementWiseOperator.leftDivideElementWise(org.mklab.nfc.matrix.Matrix)public Matrix powerElementWise(Matrix order)
MatrixElementWiseOperator の記述:
MatrixElementWiseOperator 内の powerElementWiseorder - 累乗の指数を成分とする行列
MatrixElementWiseOperator.powerElementWise(org.mklab.nfc.matrix.Matrix)public Matrix add(Matrix value)
Matrix の記述:valueとの和を返します。
Matrix 内の addvalue - 行列
valueとの和Matrix.add(org.mklab.nfc.matrix.Matrix)public Matrix subtract(Matrix value)
Matrix の記述:valueとの差を返します。
Matrix 内の subtractvalue - 引く行列
valueとの差Matrix.subtract(org.mklab.nfc.matrix.Matrix)public Matrix multiply(Matrix value)
Matrix の記述:valueとの積(this*value)を返します。
Matrix 内の multiplyvalue - 行列
valueとの積Matrix.multiply(org.mklab.nfc.matrix.Matrix)public Matrix divide(Matrix value)
Matrix の記述:valueの逆行列との積(this*value -1 )を返します。
Matrix 内の dividevalue - 割る行列
valueの逆行列との積Matrix.divide(org.mklab.nfc.matrix.Matrix)public Matrix leftDivide(Matrix value)
Matrix の記述:valueの積(this -1
*value)を返します。
Matrix 内の leftDividevalue - 割る行列
valueとの積Matrix.leftDivide(org.mklab.nfc.matrix.Matrix)public Matrix multiplyElementWise(Matrix value)
MatrixElementWiseOperator の記述:valueとの成分毎の積を成分にもつ行列を返します。
MatrixElementWiseOperator 内の multiplyElementWisevalue - 乗じる行列
MatrixElementWiseOperator.multiplyElementWise(org.mklab.nfc.matrix.Matrix)public Matrix divideElementWise(Matrix value)
MatrixElementWiseOperator の記述:valueとの成分毎の商を成分にもつ行列を返します。
MatrixElementWiseOperator 内の divideElementWisevalue - 割る行列
MatrixElementWiseOperator.divideElementWise(org.mklab.nfc.matrix.Matrix)public Matrix covariance(Matrix value)
Matrix の記述:opponentとの共分散行列を返します。
Matrix 内の covariancevalue - 対となるベクトル
Matrix.covariance(org.mklab.nfc.matrix.Matrix)
protected static Matrix[] transformToSameClass(Matrix m1,
Matrix m2)
m1 - 行列1m2 - 行列2
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||