This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "calc.hpp" | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
/** | |
* @brief 単回帰曲線(2次)の計算 | |
* | |
* @param[ref] a (double) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "calc.hpp" | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
/** | |
* @brief 単回帰直線の計算 | |
* | |
* @param[ref] 切片 a (double) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "csv.hpp" | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
// getline: 1行取得し、必要に応じて伸張 | |
int Csv::getline(std::string& str) { | |
char c; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!**************************************************** | |
! 逆行列の計算(余因子行列) | |
! | |
! DATE AUTHOR VERSION | |
! 2019.12.24 mk-mode.com 1.00 新規作成 | |
! | |
! Copyright(C) 2013 mk-mode.com All Rights Reserved. | |
!**************************************************** | |
! | |
module const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!**************************************************** | |
! 行列式の計算(余因子展開) | |
! | |
! DATE AUTHOR VERSION | |
! 2019.12.23 mk-mode.com 1.00 新規作成 | |
! | |
! Copyright(C) 2013 mk-mode.com All Rights Reserved. | |
!**************************************************** | |
! | |
module const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/ruby | |
#*************************************************************** | |
# Ruby script to calculate an inverse matrix by cofactor matrix. | |
#*************************************************************** | |
# | |
class TestInverseMatrix | |
#MTX = [ | |
# [2] | |
#] | |
#MTX = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/local/bin/ruby | |
#************************************************************** | |
# Ruby script to calculate a determinant by cofactor expansion. | |
#************************************************************** | |
# | |
class TestDeterminant | |
#MTX = [ | |
# [1] | |
#] | |
#MTX = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!**************************************************** | |
! 重回帰分析(説明変数2個)決定係数計算 | |
! | |
! DATE AUTHOR VERSION | |
! 2019.12.18 mk-mode.com 1.00 新規作成 | |
! | |
! Copyright(C) 2019 mk-mode.com All Rights Reserved. | |
!**************************************************** | |
! | |
module const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!**************************************************** | |
! 重回帰式計算(説明(独立)変数3個限定) | |
! | |
! date name version | |
! 2019.12.08 mk-mode.com 1.00 新規作成 | |
! | |
! Copyright(C) 2019 mk-mode.com All Rights Reserved. | |
!**************************************************** | |
! | |
module const |