Update README.md

This commit is contained in:
Jason Bou-Samra
2024-04-07 19:36:08 +10:00
committed by GitHub
parent 8e4081c566
commit 5ac4d04c71
+12 -12
View File
@@ -1,18 +1,17 @@
# Histogram # Histogram
What is a histogram? **What is a histogram?**
The visual representation that charts the frequency distribution of variables in a data set. * A visual representation that charts the <ins>frequency distribution</ins> of the regularity of an occurrence of a value in a <ins>data set</ins>.
A frequency distribution shows the regularity of an occurrence of a value in a set of data. * Often confused with a bar chart, although there are certain defining characteristics or points of differentiation.
Often confused with a bar chart, although there are certain defining characteristics of differentiation. * The x-axis consists of equal width bars without space in between, known as <ins>bins</ins> or buckets that represent a <ins>range of classes</ins>.
* 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 <ins>class interval</ins> and is identified with a number rather than a description or label.
* x axis is the class interval and is labelled with a number rather than a description. * The y axis represents the <ins>frequency</ins> of occurrence of a value.
* The y axis represents the frequency of occurrence of a value.
* Bar graphs represents data that is discrete or categorical in nature * Bar graphs represents data that is discrete or categorical in nature
Uses **Uses**
In statistics to show the frequency of a specific value within a certain range. * 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. * Used to analyse large amounts of data easily to detect trends and patterns.
## Change-log: ## Change-log:
@@ -23,8 +22,9 @@ Used to analyse large amounts of data easily to detect trends and patterns.
type `make` or `cc -o histo histogram.c -lm` on the command line type `make` or `cc -o histo histogram.c -lm` on the command line
## Misc. ## Misc.
I have included both uniform and gaussian (normal) distribution data files. * I have included both uniform and gaussian (normal) distribution data files.
Gnuplot or some equivelant application is required to graph the histogram data. * 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 ## Todo