2024-04-07 19:49:39 +10:00
2024-04-07 19:13:04 +10:00
2024-04-07 19:20:30 +10:00
2024-04-07 19:13:04 +10:00
2024-04-07 19:13:04 +10:00
2024-04-07 19:49:39 +10:00
2024-04-07 19:46:16 +10:00
2024-04-07 19:13:04 +10:00
2024-04-07 19:41:38 +10:00
2024-04-07 19:13:04 +10:00

Histogram

What is a histogram?

  • A visual representation that charts the frequency distribution of the regularity of an occurrence of a value in a data set.
  • Often confused with a bar chart, although there are certain defining characteristics or points of differentiation.
  • The x-axis consists of equal width bars without space in between, known as bins or buckets that represent a range of classes.
  • x axis is the class interval and is identified with a number rather than a description or label.
  • The y axis represents the frequency of occurrence of a value.
  • Bar graphs represents data that is discrete or categorical in nature

Uses

  • In statistics to show the frequency of a specific value within a certain range.
  • Used to analyse large amounts of data easily to detect trends and patterns.

Change-log:

  • 06/04/2023 - Initial release
  • 04/04/2023 - Foundation code

Compilation

type make or cc -o histo histogram.c -lm on the command line

Misc.

  • I have included both uniform and gaussian (normal) distribution data files.
  • Gnuplot or some equivelant application is required to graph the histogram data.
  • I find gnuplot then plot 'dist3.dat' using 1:2 smooth freq w boxes works well (see png file for sample output).

Todo

  • Need to use SDL2 to implement internal plotting routine.
  • Logical bugs still exit, and so this is very much still a work in progress.

Author(s)

Jason Bou-Samra

S
Description
No description provided
Readme
165 KiB
Languages
C 93.3%
Makefile 6.7%