Skip to content

casteer/histogram_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

histogram_cpp

I needed a short c++ program that calculates the histogram of a bunch of numbers on the command-line.

Dependencies

Aside from standard C++ (vectors, This program uses the really nice Boost::Accumulators and Boost::Program_Options so you'll need these.

Compilation

So to compile this, please use:

g++ histogram.cpp -o histogram -lboost_program_options

Then to get help for the calling parameters etc, do

histogram --help

...and follow the instructions.

Use cases

The first is to use it simply with a data file:

./histogram -i data.file --min 0.0 --max 100.0 --bins 101

Then it will write the histogram to the terminal.

=======

histogram_cpp

I needed a short c++ program that calculates the histogram of a bunch of numbers on the command-line.

Dependencies

Aside from standard C++ (vectors, This program uses the really nice Boost::Accumulators and Boost::Program_Options so you'll need these.

Compilation

So to compile this, please use:

g++ histogram.cpp -o histogram -lboost_program_options

Then to get help for the calling parameters etc, do

histogram --help

...and follow the instructions.

Use cases

The first is to use it simply with a data file:

./histogram -i data.file --min 0.0 --max 100.0 --bins 101

Then it will write the histogram to the terminal.

4ea4e0357d8324935ba165a66700896efef7250a

About

A short c++ program that calculates the histogram of a bunch of numbers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages