Skip to content

Commit

Permalink
Add support for custom bin-edges in histogram method. See sample in v…
Browse files Browse the repository at this point in the history
…ector_unary_redux.cpp
  • Loading branch information
dattatreya303 committed Jun 5, 2018
1 parent 9cd0afd commit 9760c42
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/samples/vector_unary_redux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@ int main () {
v1 (4) = 3.699; v1 (5) = 7;

std::cout << histogram (v1, 5) << std::endl;

vector<double> v2 (6);
v2 (0) = 1.0; v2 (1) = 3.7;
v2 (2) = 6.4; v2 (3) = 9.1;
v2 (4) = 11.8; v2 (5) = 14.5;

std::cout << histogram (v1, v2) << std::endl;

}

0 comments on commit 9760c42

Please sign in to comment.