Skip to content
Snippets Groups Projects
Commit c14832ae authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add method DiscreteDistribution::size

parent 9b6edd28
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,11 @@ namespace hpp { ...@@ -92,6 +92,11 @@ namespace hpp {
return 0; return 0;
} }
/// Return the number of value.
size_t size () const {
return values_.size ();
}
/// Return the probabilities. /// Return the probabilities.
std::vector < Proba_t > probabilities () const { std::vector < Proba_t > probabilities () const {
std::vector < Proba_t > proba (values_.size()); std::vector < Proba_t > proba (values_.size());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment