HES
クラス CMatrix

java.lang.Object
  |
  +--HES.CMatrix

public class CMatrix
extends java.lang.Object


フィールドの概要
static double TINY
           これより小さい値は0とみなします。
 
コンストラクタの概要
CMatrix()
           新しい CMatrix オブジェクトを作成します。
 
メソッドの概要
 void copy_matrix(double[][] a, double[][] b, int n, int m)
           行数と列数を指定して行列をコピーします。
 void copy_matrix2(double[][] a, double[][] b, int n, int m, int sno, int smo, int tno, int tmo)
           コピーを開始する行と列のオフセットを指定して行数と列数を指定して行列をコピーします。
 void covariance_matrix(double[][] R, int n)
           分散行列を作成します。
 double[] create_a_new_vector1(int n)
           要素数を指定してベクトルを作成します。
 double[] create_a_new_vector2(int n)
           要素数を指定して初期化されたベクトルを作成します。
 void derivative_matrix(double[][] D, int dy, int dx)
           微分行列を作成します。
 void extract_row_vector(double[][] a, double[] v, int row_to_extract, int ncol)
           行列から指定した行を抜き出します。
 void free_matrix(double[][] a)
           行列の要素をすべて削除します。
 void free_vector(double[] v)
           配列の要素を削除します。
 void identity_matrix(double[][] I, int n)
           単位行列を作成します。
 int[] ivector(int n)
           0で初期化したベクトルを返します。
 void lu_decomposition1(double[][] a, int n, int[] indx, java.lang.Double d)
           
 void lubksb(double[][] a, int n, int[] indx, double[] b)
           
 void matrix_add(double[][] a, double[][] b, double[][] c, int n, int m)
           行列の加算を行います。
 void matrix_angles(double[][] a, double[][] b, double[][] c, int n, int m)
           
 void matrix_transpose1(double[][] a, double[][] at, int n, int m)
           転置行列を作成します。
 double[][] matrix_transpose2(double[][] a, int n, int m)
           転置行列を返します。
 void multiply_matrices2(double[][] a, double[][] b, double[][] c, int n, int m)
           行列掛ける行列の掛け算を行います。
 void multiply_matrices3(double[][] a, double[][] b, int N)
           行列掛ける行列の演算を行います。
 double[][] newmat(int nrow, int ncol)
           行と列を指定して新しい行列を作成します。
 double[] newvec(int n)
           要素数を指定して新しいベクトルを作成します。
 void normalize_matrix(double[][] a, int n, int m)
           
 void nrerror(java.lang.String s1, java.lang.String s2, int i)
           
 double[][] obtain_inverse_matrix2(double[][] a, int n)
           
 double[][] obtain_inverse_matrix3(double[][] a, int n)
           
 void regularization_matrix(double[][] R, int n)
           
 void scale_matrix(double[][] a, double s, int n, int m)
           
 double[][] svd(double[][] A, double[][] V, double[] z, int m, int n)
           特異値分解を実施します。
 void vector_add(double[] a, double[] b, double[] c, double fa, double fb, int n)
           ベクトルの一次結合を計算します。
 void vector_multiply(double[][] a, double[] b, double[] c, int n, int m)
           行列×縦ベクトルを計算します。
 void vector_subtract(double[] a, double[] b, double[] c, int n)
           ベクトルの要素同士の引き算を行います。
 void vector_to_matrix(double[] v, double[][] a, int m, int n)
           ベクトルの要素をもつ行列を作成します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

TINY

public static final double TINY
これより小さい値は0とみなします。
関連項目:
定数フィールド値
コンストラクタの詳細

CMatrix

public CMatrix()
新しい CMatrix オブジェクトを作成します。
メソッドの詳細

newmat

public double[][] newmat(int nrow,
                         int ncol)

free_vector

public void free_vector(double[] v)

free_matrix

public void free_matrix(double[][] a)

create_a_new_vector1

public double[] create_a_new_vector1(int n)

create_a_new_vector2

public double[] create_a_new_vector2(int n)

newvec

public double[] newvec(int n)

ivector

public int[] ivector(int n)

display_matrix1

public void display_matrix1(double[][] a,
                            int nrow,
                            int ncol)

display_matrix2

public void display_matrix2(double[][] a,
                            int nrow,
                            int ncol)

display_matrix3

public void display_matrix3(double[][] a,
                            int nrow,
                            int ncol)

display_matrix4

public void display_matrix4(double[][] a,
                            int ncol,
                            int perline,
                            java.lang.String format)

display_int_matrix

public void display_int_matrix(double[][] a,
                               int nrow,
                               int ncol)

display_vector

public void display_vector(double[] v,
                           int n,
                           int perline,
                           java.lang.String format)

display_vector2

public void display_vector2(double[] v,
                            int n)

extract_row_vector

public void extract_row_vector(double[][] a,
                               double[] v,
                               int row_to_extract,
                               int ncol)

vector_to_matrix

public void vector_to_matrix(double[] v,
                             double[][] a,
                             int m,
                             int n)

scale_matrix

public void scale_matrix(double[][] a,
                         double s,
                         int n,
                         int m)

normalize_matrix

public void normalize_matrix(double[][] a,
                             int n,
                             int m)

copy_matrix

public void copy_matrix(double[][] a,
                        double[][] b,
                        int n,
                        int m)
行数と列数を指定して行列をコピーします。

パラメータ:
a - コピー元の行列を示す配列
b - コピー先の行列を示す配列
n - コピーする行数
m - コピーする列数

copy_matrix2

public void copy_matrix2(double[][] a,
                         double[][] b,
                         int n,
                         int m,
                         int sno,
                         int smo,
                         int tno,
                         int tmo)
コピーを開始する行と列のオフセットを指定して行数と列数を指定して行列をコピーします。

パラメータ:
a - コピー元の行列を示す配列
b - コピー先の行列を示す配列
n - コピーする行数
m - コピーする列数
sno - コピー元のコピー開始行
smo - コピー元のコピー開始列
tno - コピー先のコピー開始行
tmo - コピー先のコピー開始列

matrix_transpose1

public void matrix_transpose1(double[][] a,
                              double[][] at,
                              int n,
                              int m)

matrix_transpose2

public double[][] matrix_transpose2(double[][] a,
                                    int n,
                                    int m)

matrix_add

public void matrix_add(double[][] a,
                       double[][] b,
                       double[][] c,
                       int n,
                       int m)

multiply_matrices2

public void multiply_matrices2(double[][] a,
                               double[][] b,
                               double[][] c,
                               int n,
                               int m)

multiply_matrices3

public void multiply_matrices3(double[][] a,
                               double[][] b,
                               int N)

matrix_angles

public void matrix_angles(double[][] a,
                          double[][] b,
                          double[][] c,
                          int n,
                          int m)

vector_subtract

public void vector_subtract(double[] a,
                            double[] b,
                            double[] c,
                            int n)

vector_add

public void vector_add(double[] a,
                       double[] b,
                       double[] c,
                       double fa,
                       double fb,
                       int n)

vector_multiply

public void vector_multiply(double[][] a,
                            double[] b,
                            double[] c,
                            int n,
                            int m)

derivative_matrix

public void derivative_matrix(double[][] D,
                              int dy,
                              int dx)

identity_matrix

public void identity_matrix(double[][] I,
                            int n)

regularization_matrix

public void regularization_matrix(double[][] R,
                                  int n)

covariance_matrix

public void covariance_matrix(double[][] R,
                              int n)

nrerror

public void nrerror(java.lang.String s1,
                    java.lang.String s2,
                    int i)

lu_decomposition1

public void lu_decomposition1(double[][] a,
                              int n,
                              int[] indx,
                              java.lang.Double d)

lubksb

public void lubksb(double[][] a,
                   int n,
                   int[] indx,
                   double[] b)

obtain_inverse_matrix2

public double[][] obtain_inverse_matrix2(double[][] a,
                                         int n)

obtain_inverse_matrix3

public double[][] obtain_inverse_matrix3(double[][] a,
                                         int n)

svd

public double[][] svd(double[][] A,
                      double[][] V,
                      double[] z,
                      int m,
                      int n)