|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.mklab.tool.matrix.Diff
public class Diff
列毎や行毎の差を求めるクラスです。
Difference function for each column
Matrix.cumulativeSum()
コンストラクタの概要 | |
---|---|
Diff()
|
メソッドの概要 | |
---|---|
static Matrix |
diff(Matrix x)
もし x がベクトルなら、隣り合う成分の差からなるベクトル [x(2)-x(1) x(3)-x(2) ... x(n)-x(n-1)] を返します。 |
static Matrix |
diff(Matrix x,
int order)
order 階差分を求めます。 |
static Matrix |
diffColumnWise(Matrix x)
もし x が行列なら、列毎に差分
diff_col(x) = x(2:n,:) - x(1:n-1,:). |
static Matrix |
diffColumnWise(Matrix x,
int order)
order 階差分を求めます。 |
static Matrix |
diffRowWise(Matrix x)
もし x が行列なら、行毎に差分
diff_row(x) = x(:,2:n) - x(:,1:n-1). |
static Matrix |
diffRowWise(Matrix x,
int order)
order 階差分を求めます。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Diff()
メソッドの詳細 |
---|
public static Matrix diff(Matrix x)
x
がベクトルなら、隣り合う成分の差からなるベクトル [x(2)-x(1) x(3)-x(2) ... x(n)-x(n-1)]
を返します。
x
- データ
public static Matrix diff(Matrix x, int order)
order
階差分を求めます。
x
- データorder
- 階数
public static Matrix diffColumnWise(Matrix x)
x
が行列なら、列毎に差分
diff_col(x) = x(2:n,:) - x(1:n-1,:).
を求めます。
x
- データ
public static Matrix diffColumnWise(Matrix x, int order)
order
階差分を求めます。
x
- 対象となる行列order
- 階数
public static Matrix diffRowWise(Matrix x)
x
が行列なら、行毎に差分
diff_row(x) = x(:,2:n) - x(:,1:n-1).
を計算します。
x
- データ
public static Matrix diffRowWise(Matrix x, int order)
order
階差分を求めます。
x
- データorder
- 階数
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |