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
--- | |
Language: Cpp | |
# BasedOnStyle: LLVM | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlines: Right | |
AlignOperands: true | |
AlignTrailingComments: true |
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
--- | |
Checks: 'clang-diagnostic-*,clang-analyzer-*,cppcoreguidelines-*,modernize-*,-modernize-use-trailing-return-type' | |
WarningsAsErrors: true | |
HeaderFilterRegex: '' | |
AnalyzeTemporaryDtors: false | |
FormatStyle: google | |
CheckOptions: | |
- key: cert-dcl16-c.NewSuffixes | |
value: 'L;LL;LU;LLU' | |
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField |
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
# Details: | |
# https://en.wikipedia.org/wiki/Steinhart%E2%80%93Hart_equation | |
# https://de.wikipedia.org/wiki/Steinhart-Hart-Gleichung | |
# Fitting of the four coefficient equation | |
import csv | |
import numpy | |
from scipy.optimize import curve_fit | |
import matplotlib.pyplot as plt |
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 <string> | |
#include <cassert> | |
#include <iostream> | |
#include "exprtk/exprtk.hpp" | |
/** | |
* @brief class containig a generic funtion for formatting numbers with snprintf | |
* | |
* Uses the igeneric_function overload for strings |
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 <string> | |
// uses the initialization ordering of c++ to construct members, based on previously created member (document) | |
// that will be released within the constructor body | |
// http://en.cppreference.com/w/cpp/language/initializer_list | |
// this is what should be released after initialization was done |
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
template<size_t Dimension> | |
const double normalDistributionDensity(const Eigen::Matrix<double, Dimension, Dimension> & cov, | |
const Eigen::Matrix<double, Dimension, 1> & mu, const Eigen::Matrix<double, Dimension, 1> & x ) | |
{ | |
const Eigen::Matrix<double, Dimension, 1> d = mu - x; | |
// calculate exponent | |
const double e = -0.5 * d.transpose() * cov.inverse() * d; | |
// get normal distribution value |
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 <boost/chrono/chrono_io.hpp> | |
class MeasureDuration | |
{ | |
public: | |
MeasureDuration(const std::string & name = "unknown" ) | |
{ | |
_duration = 0; | |
_name = name; |
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 <lemon/smart_graph.h> | |
#include <lemon/lgf_reader.h> | |
#include <lemon/lgf_writer.h> | |
#include <lemon/list_graph.h> | |
#include <lemon/cycle_canceling.h> | |
#include <lemon/preflow.h> | |
using namespace lemon; | |
typedef ListDigraph Graph; |
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 <lemon/smart_graph.h> | |
#include <lemon/lgf_reader.h> | |
#include <lemon/lgf_writer.h> | |
#include <lemon/list_graph.h> | |
#include <lemon/cycle_canceling.h> | |
#include <lemon/preflow.h> | |
using namespace lemon; | |
typedef ListDigraph Graph; |