initial implementation

This commit is contained in:
Roland Conybeare 2023-10-23 13:46:10 -04:00
commit e281bc9213
10 changed files with 1508 additions and 0 deletions

View file

@ -0,0 +1,20 @@
/* @file Distribution.hpp */
#pragma once
#include "xo/refcnt/Refcounted.hpp"
namespace xo {
namespace distribution {
/* abstract api for a cumulative probability distribution.
* over supplied Domain
*/
template<typename Domain>
class Distribution : public ref::Refcount {
public:
virtual double cdf(Domain const & x) const = 0;
}; /*Distribution*/
} /*namespace distribution*/
} /*namespace xo*/
/* end Distribution.hpp */