initial implementation
This commit is contained in:
commit
e281bc9213
10 changed files with 1508 additions and 0 deletions
20
include/xo/distribution/Distribution.hpp
Normal file
20
include/xo/distribution/Distribution.hpp
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue