Opened 11 years ago

Closed 9 years ago

#6804 closed Feature Requests (fixed)

Beta and Laplace distributions for Boost.Random

Reported by: Yan Zhou <zhouyan@…> Owned by: No-Maintainer
Milestone: To Be Determined Component: random
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:

Description

Both Beta and Laplace are two very common distributions that are missing from Boost.Random, and both are very easy to implement provided existing distributions in Boost.Random

I have drafted implementations for these two distributions. I have tried my best to follow to the conventions in the existing code. However, there seems to be small inconsistency among existing distribution implementations. I followed those I found in normal_distribution.hpp

Attachments (2)

laplace_distribution.hpp (5.9 KB ) - added by Yan Zhou <zhouyan@…> 11 years ago.
beta_distribution.hpp (5.8 KB ) - added by Yan Zhou <zhouyan@…> 11 years ago.

Download all attachments as: .zip

Change History (3)

by Yan Zhou <zhouyan@…>, 11 years ago

Attachment: laplace_distribution.hpp added

by Yan Zhou <zhouyan@…>, 11 years ago

Attachment: beta_distribution.hpp added
Note: See TracTickets for help on using tickets.