/* * © Copyright 2014 – Urheberrechtshinweis * Alle Rechte vorbehalten / All Rights Reserved * * Programmcode ist urheberrechtlich geschuetzt. * Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner. * Keine Verwendung ohne explizite Genehmigung. * (vgl. § 106 ff UrhG / § 97 UrhG) */ #ifndef LOGISTIC_H #define LOGISTIC_H namespace Distribution { // https://de.wikipedia.org/wiki/Logistische_Verteilung template class Logistic { public: /** alpha = move the center, beta = slope */ static T getCDF(const T x, const T alpha, const T beta) { return 1 / (1 + std::exp( -((x-alpha)/beta) ) ); } }; } #endif // LOGISTIC_H