|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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
内の isZero
Grid.isZero()
public boolean isUnit()
Matrix
の記述:
Matrix
内の isUnit
Matrix.isUnit()
public M createZero()
Matrix
の記述:
Matrix
内の createZero
Matrix.createZero()
public M createZero(int size)
Matrix
の記述:size
*size
の零行列を生成します。
Matrix
内の createZero
size
- サイズ指定
Matrix.createZero(int)
public M createZero(int rowNumber, int columnNumber, Grid block)
Matrix
の記述:block
のrowNumber
*columnNumber
倍の零行列を生成します。
Matrix
内の createZero
rowNumber
- 行方向の倍数columnNumber
- 列方向の倍数block
- 基本となる行列
block
のrowNumber
*
columnNumber
倍の零行列Matrix.createZero(int, int, org.mklab.nfc.matrix.Grid)
public M createUnit()
Matrix
の記述:
Matrix
内の createUnit
Matrix.createUnit()
public M createUnit(int size)
Matrix
の記述:size
*size
の単位行列を生成します。
Matrix
内の createUnit
size
- サイズ指定
Matrix.createUnit(int)
public M createUnit(int rowNumber, int columnNumber, Grid block)
Matrix
の記述:block
のrowNumber
*columnNumber
倍の単位行列を生成します。
Matrix
内の createUnit
rowNumber
- 行方向の倍数columnNumber
- 列方向の倍数block
- 基本となる行列
block
のrowNumber
*
columnNumber
倍の単位行列Matrix.createUnit(int, int, org.mklab.nfc.matrix.Grid)
public M createOnes()
Matrix
の記述:
Matrix
内の createOnes
Matrix.createOnes()
public M createOnes(int size)
Matrix
の記述:size
*size
の全成分が1である行列を生成します。
Matrix
内の createOnes
size
- サイズ指定
Matrix.createOnes(int)
public M createOnes(int rowNumber, int columnNumber, Grid block)
Matrix
の記述:block
のrowNumber
*columnNumber
倍の全成分が1である行列を生成します。
Matrix
内の createOnes
rowNumber
- 行方向の倍数columnNumber
- 列方向の倍数block
- 基本となる行列
block
のrowNumber
*
columnNumber
倍の全成分が1である行列Matrix.createOnes(int, int, org.mklab.nfc.matrix.Grid)
public M shiftUp(int number)
Matrix
の記述:
Matrix
内の shiftUp
number
- シフトで進む数
Matrix.shiftUp(int)
public M shiftLeft(int number)
Matrix
の記述:
Matrix
内の shiftLeft
number
- シフトで進む数
Matrix.shiftLeft(int)
public M roundToZeroElementWise()
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の roundToZeroElementWise
MatrixElementWiseOperator.roundToZeroElementWise()
public Matrix leftDivide(int value)
Matrix
の記述:value
の積(this
-1
*value
)を返します。
Matrix
内の leftDivide
value
- 割る整数
Matrix.leftDivide(int)
public Matrix leftDivide(double value)
Matrix
の記述:value
の積(this
-1
*value
)を返します。
Matrix
内の leftDivide
value
- 割る実数
Matrix.leftDivide(double)
public Matrix leftDivide(Scalar<?> value)
Matrix
の記述:this
-1
*value
)を返します。
Matrix
内の leftDivide
value
- スカラー
value
の積Matrix.leftDivide(org.mklab.nfc.scalar.Scalar)
public Matrix power(int order)
Matrix
の記述:this
order )を返します。
Matrix
内の power
order
- 指数
Matrix.power(int)
public boolean isTransformableTo(Matrix value)
Matrix
の記述:
Matrix
内の isTransformableTo
value
- 変換先
Matrix.isTransformableTo(org.mklab.nfc.matrix.Matrix)
public Matrix transformTo(Matrix value)
Matrix
の記述:
Matrix
内の transformTo
value
- 変換先
Matrix.transformTo(org.mklab.nfc.matrix.Matrix)
public boolean isTransformableFrom(Matrix value)
Matrix
の記述:
Matrix
内の isTransformableFrom
value
- 変換元
Matrix.isTransformableFrom(org.mklab.nfc.matrix.Matrix)
public Matrix transformFrom(Matrix value)
Matrix
の記述:
Matrix
内の transformFrom
value
- 変換元
Matrix.transformFrom(org.mklab.nfc.matrix.Matrix)
public Matrix leftDivideElementWise(Matrix value)
MatrixElementWiseOperator
の記述:value
との成分毎の左からの商を成分にもつ行列を返します。
MatrixElementWiseOperator
内の leftDivideElementWise
value
- 割られる行列
MatrixElementWiseOperator.leftDivideElementWise(org.mklab.nfc.matrix.Matrix)
public Matrix powerElementWise(Matrix order)
MatrixElementWiseOperator
の記述:
MatrixElementWiseOperator
内の powerElementWise
order
- 累乗の指数を成分とする行列
MatrixElementWiseOperator.powerElementWise(org.mklab.nfc.matrix.Matrix)
public Matrix add(Matrix value)
Matrix
の記述:value
との和を返します。
Matrix
内の add
value
- 行列
value
との和Matrix.add(org.mklab.nfc.matrix.Matrix)
public Matrix subtract(Matrix value)
Matrix
の記述:value
との差を返します。
Matrix
内の subtract
value
- 引く行列
value
との差Matrix.subtract(org.mklab.nfc.matrix.Matrix)
public Matrix multiply(Matrix value)
Matrix
の記述:value
との積(this
*value
)を返します。
Matrix
内の multiply
value
- 行列
value
との積Matrix.multiply(org.mklab.nfc.matrix.Matrix)
public Matrix divide(Matrix value)
Matrix
の記述:value
の逆行列との積(this
*value -1 )を返します。
Matrix
内の divide
value
- 割る行列
value
の逆行列との積Matrix.divide(org.mklab.nfc.matrix.Matrix)
public Matrix leftDivide(Matrix value)
Matrix
の記述:value
の積(this
-1
*value
)を返します。
Matrix
内の leftDivide
value
- 割る行列
value
との積Matrix.leftDivide(org.mklab.nfc.matrix.Matrix)
public Matrix multiplyElementWise(Matrix value)
MatrixElementWiseOperator
の記述:value
との成分毎の積を成分にもつ行列を返します。
MatrixElementWiseOperator
内の multiplyElementWise
value
- 乗じる行列
MatrixElementWiseOperator.multiplyElementWise(org.mklab.nfc.matrix.Matrix)
public Matrix divideElementWise(Matrix value)
MatrixElementWiseOperator
の記述:value
との成分毎の商を成分にもつ行列を返します。
MatrixElementWiseOperator
内の divideElementWise
value
- 割る行列
MatrixElementWiseOperator.divideElementWise(org.mklab.nfc.matrix.Matrix)
public Matrix covariance(Matrix value)
Matrix
の記述:opponent
との共分散行列を返します。
Matrix
内の covariance
value
- 対となるベクトル
Matrix.covariance(org.mklab.nfc.matrix.Matrix)
protected static Matrix[] transformToSameClass(Matrix m1, Matrix m2)
m1
- 行列1m2
- 行列2
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |