Skip to content

Instantly share code, notes, and snippets.

Avatar

mk-mode komasaru

View GitHub Profile
@komasaru
komasaru / file.cpp
Created Jul 29, 2020
C++ source code to do LU-decomposition by Crout method.
View file.cpp
#include "file.hpp"
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
bool File::get_text(std::vector<std::vector<double>>& data) {
try {
// ファイル OPEN
@komasaru
komasaru / file.cpp
Created Jul 29, 2020
C++ source code to do LU-decomposition by inner-product form.
View file.cpp
#include "file.hpp"
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
bool File::get_text(std::vector<std::vector<double>>& data) {
try {
// ファイル OPEN
@komasaru
komasaru / file.cpp
Last active Jul 31, 2020
C++ source code to do LU-decomposition by outer-product form.
View file.cpp
#include "file.hpp"
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
bool File::get_text(std::vector<std::vector<double>>& data) {
try {
// ファイル OPEN
@komasaru
komasaru / adjusted_coefficient_of_determination.cpp
Last active Jul 31, 2020
C++ source code to calculate an adjusted coefficent of determination for multiple regression.
View adjusted_coefficient_of_determination.cpp
/***********************************************************
重回帰分析(説明変数2個)決定係数計算
DATE AUTHOR VERSION
2020.07.20 mk-mode.com 1.00 新規作成
Copyright(C) 2020 mk-mode.com All Rights Reserved.
***********************************************************/
#include "calc.hpp"
#include "file.hpp"
@komasaru
komasaru / calc.cpp
Last active Jul 31, 2020
C++ source code to compute multiple regression equations.(2d)
View calc.cpp
#include "calc.hpp"
#include <cmath>
#include <iostream>
#include <sstream>
#include <vector>
/**
* @brief 重回帰式(説明変数2個; 2次多項式モデル)の計算
*
@komasaru
komasaru / calc.cpp
Last active Jul 31, 2020
C++ source code to compute multiple regression equations.(3 explanatory variables)
View calc.cpp
#include "calc.hpp"
#include <cmath>
#include <iostream>
#include <sstream>
#include <vector>
/**
* @brief 重回帰式(説明変数3個)の計算
*
@komasaru
komasaru / calc.cpp
Last active Jul 31, 2020
C++ source code to compute multiple regression equations.
View calc.cpp
#include "calc.hpp"
#include <cmath>
#include <iostream>
#include <sstream>
#include <vector>
/**
* @brief 重回帰式(説明変数2個)の計算
*
@komasaru
komasaru / calc.cpp
Last active Jul 31, 2020
C++ source code to calculate a coefficent of determination for simple 2D regression.
View calc.cpp
#include "calc.hpp"
#include <cmath>
#include <iostream>
#include <sstream>
#include <vector>
/**
* @brief 単回帰曲線(2次)の計算
*
@komasaru
komasaru / calc.cpp
Last active Jul 31, 2020
C++ source code to calculate a coefficent of determination for simple linear regression.
View calc.cpp
#include "calc.hpp"
#include <cmath>
#include <iostream>
#include <sstream>
#include <vector>
/**
* @brief 単回帰直線の計算
*
@komasaru
komasaru / calc.cpp
Last active Jul 31, 2020
C++ source code to calculate a simple regression curve(exp_e).
View calc.cpp
#include "calc.hpp"
#include <cmath>
#include <iostream>
#include <sstream>
#include <vector>
/**
* @brief 単回帰曲線(e指数回帰)の計算
*
You can’t perform that action at this time.