Skip to content

Instantly share code, notes, and snippets.

mk-mode komasaru

Block or report user

Report or block komasaru

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@komasaru
komasaru / inverse_matrix.f95
Created Feb 5, 2020
Fortran 95 source code to calculate an inverse matrix by cofactor matrix.
View inverse_matrix.f95
!****************************************************
! 逆行列の計算(余因子行列)
!
! DATE AUTHOR VERSION
! 2019.12.24 mk-mode.com 1.00 新規作成
!
! Copyright(C) 2013 mk-mode.com All Rights Reserved.
!****************************************************
!
module const
@komasaru
komasaru / determinant.f95
Created Feb 5, 2020
Fortran 95 source code to calculate a determinant by cofactor expansion.
View determinant.f95
!****************************************************
! 行列式の計算(余因子展開)
!
! DATE AUTHOR VERSION
! 2019.12.23 mk-mode.com 1.00 新規作成
!
! Copyright(C) 2013 mk-mode.com All Rights Reserved.
!****************************************************
!
module const
@komasaru
komasaru / test_inverse_matrix.rb
Created Feb 4, 2020
Ruby script to calculate an inverse matrix by cofactor matrix.
View test_inverse_matrix.rb
#! /usr/local/bin/ruby
#***************************************************************
# Ruby script to calculate an inverse matrix by cofactor matrix.
#***************************************************************
#
class TestInverseMatrix
#MTX = [
# [2]
#]
#MTX = [
@komasaru
komasaru / test_determinant.rb
Created Feb 4, 2020
Ruby script to calculate a determinant by cofactor expansion.
View test_determinant.rb
#! /usr/local/bin/ruby
#**************************************************************
# Ruby script to calculate a determinant by cofactor expansion.
#**************************************************************
#
class TestDeterminant
#MTX = [
# [1]
#]
#MTX = [
@komasaru
komasaru / adjusted_coefficient_of_determination.f95
Created Feb 2, 2020
Fortran 95 source code to calculate an adjusted coefficent of determination for multiple regression.
View adjusted_coefficient_of_determination.f95
!****************************************************
! 重回帰分析(説明変数2個)決定係数計算
!
! DATE AUTHOR VERSION
! 2019.12.18 mk-mode.com 1.00 新規作成
!
! Copyright(C) 2019 mk-mode.com All Rights Reserved.
!****************************************************
!
module const
@komasaru
komasaru / adjusted_coefficient_of_determination.rb
Created Feb 2, 2020
Ruby script to calculate an adjusted coefficient of determination.
View adjusted_coefficient_of_determination.rb
#! /usr/local/bin/ruby
#*******************************************************************
# Ruby script to calculate an adjusted coefficient of determination.
#*******************************************************************
#
class AdjustedCoefficientOfDetermination
# 説明変数と目的変数
X = [
[17.5, 17.0, 18.5, 16.0, 19.0, 19.5, 16.0, 18.0, 19.0, 19.5],
[30 , 25 , 20 , 30 , 45 , 35 , 25 , 35 , 35 , 40 ]
@komasaru
komasaru / regression_multi_3e.f95
Created Jan 31, 2020
Fortran 95 source code to compute multiple regression equations.(3 explanatory variables)
View regression_multi_3e.f95
!****************************************************
! 重回帰式計算(説明(独立)変数3個限定)
!
! date name version
! 2019.12.08 mk-mode.com 1.00 新規作成
!
! Copyright(C) 2019 mk-mode.com All Rights Reserved.
!****************************************************
!
module const
@komasaru
komasaru / regression_multi_3e.rb
Created Jan 31, 2020
Ruby script to compute multiple regression equations.(3 explanatory variables)
View regression_multi_3e.rb
#! /usr/local/bin/ruby
#*********************************************
# Ruby script to calculate a multiple regression function.
# (説明変数3個のケース)
#*********************************************
#
class Array
def reg_multi_3e(y)
# 元の数、変量内のサンプル数
e_size, s_size = self.size, y.size
@komasaru
komasaru / calc_rcc_kendall.f95
Last active Jan 29, 2020
Fortran 95 source code to calculate a Kendall's Rank Correlation Coefficient.
View calc_rcc_kendall.f95
!****************************************************
! ケンドールの順位相関係数の計算
!
! DATE AUTHOR VERSION
! 2019.12.13 mk-mode.com 1.00 新規作成
!
! Copyright(C) 2019 mk-mode.com All Rights Reserved.
!****************************************************
!
module cst
@komasaru
komasaru / calc_rcc_spearman.f95
Created Jan 29, 2020
Fortran 95 source code to calculate a Spearman's Rank Correlation Coefficient.
View calc_rcc_spearman.f95
!****************************************************
! スピアマンの順位相関係数の計算
!
! DATE AUTHOR VERSION
! 2019.12.12 mk-mode.com 1.00 新規作成
!
! Copyright(C) 2019 mk-mode.com All Rights Reserved.
!****************************************************
!
module cst
You can’t perform that action at this time.