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
\input ifpdf.sty | |
\input ifluatex.sty | |
\input ifxetex.sty | |
\ifxetex | |
% XeTeX: | |
\typeout{---Using XeTeX---} | |
\documentclass{bxjsarticle} | |
\usepackage{xlextra} | |
\XeTeXlinebreaklocale "ja" | |
\XeTeXlinebreakskip=0pt plus 1pt |
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
\documentclass{jsarticle} | |
\declareterm{% | |
state = \mathbf{x}, | |
input = \mathbf{u}, | |
} | |
\begin{document} | |
\begin{equation} |
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
\documentclass{beamer} | |
\usepackage{lipsum} | |
\usepackage{tikz} | |
\usetikzlibrary{calc,shapes,positioning,backgrounds} | |
\usepackage[absolute,overlay]{textpos} | |
\setlength{\TPHorizModule}{1mm} | |
\setlength{\TPVertModule}{\TPHorizModule} | |
\textblockorigin{0mm}{6mm} |
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
import itertools | |
import numpy as np | |
from scipy import linalg | |
import matplotlib.pyplot as plt | |
import matplotlib as mpl | |
from sklearn import mixture | |
# Number of samples per component |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 <algorithm> | |
#include <ctime> | |
#include <fstream> | |
#include <iostream> | |
#include <iterator> | |
#include <random> | |
#include <tuple> | |
#include <utility> | |
#include <vector> | |
#include <boost/progress.hpp> |
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 <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <random> | |
#include <vector> | |
using namespace std; | |
class multinominal_distribution | |
{ | |
std::vector<double> m_prob; |
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
#pragma once | |
#include "socketapi.hpp" | |
namespace network { | |
using boost::optional; | |
namespace ph = std::placeholders; | |
// @brief リスナソケットを生成する | |
// @param port :: unsigned short ソケットをbindするポート番号 | |
// @retval 作成したソケットのディスクリプタ |
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 <iostream> | |
#include <type_traits> | |
#include <utility> | |
#include <boost/optional.hpp> | |
template <typename T> | |
std::ostream& operator<<(std::ostream& os, boost::optional<T> const& val) | |
{ | |
if (val) | |
return os << val.get(); |
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 <iostream> | |
#include <functional> | |
#include <utility> | |
#include <type_traits> | |
using namespace std; | |
namespace detail { | |
template <typename MaybeCallable, class... Args> | |
struct is_callable |