Searching for a fast/efficient histogram algorithm (with pre-specified bins)

前端 未结 3 1201
难免孤独
难免孤独 2020-12-24 07:11

I don\'t do much coding outside of Matlab, but I have a need to export my Matlab code to another language, most likely C. My Matlab code includes a histogram function, histc

3条回答
  •  天涯浪人
    2020-12-24 07:57

    GSL (GNU Scientific Library) contains a histogram implementation.

    Here is the documentation: http://www.gnu.org/software/gsl/manual/html_node/Histograms.html.

    And here is an example use: http://www.gnu.org/software/gsl/manual/html_node/Example-programs-for-histograms.html.

提交回复
热议问题