The Statistics Calculator is a user-friendly tool developed to efficiently compute essential statistical measures such as average, median, variance, and standard deviation from a dataset provided in a file. This project simplifies statistical analysis, offering a streamlined alternative to manual calculations or complex software.
To use the Statistics Calculator:
-
Prepare a
.txt
file nameddata.txt
containing the dataset you wish to analyze. Each line in the file should represent one value of the statistical population, separated by a new line.Example:
728 763 763 764 90.23 74 738 ...
-
Run the program via the command line. Since the program is written in Go, execute the following command:
$ go run main.go data.txt
Replace
main.go
with your program file name anddata.txt
with the path to your dataset file.
The program will compute the average, median, variance, and standard deviation of the dataset and display the results in the following format:
Average: 560
Median: 738
Variance: 91545
Standard Deviation: 303
Note: Values are rounded to integers.
No installation is necessary. Clone the repository, navigate to the folder containing the files, and execute the program using provided commands.
There are no configuration options available for this project.
Contributions to this project are welcomed. Fork the repository, implement your changes, and submit a pull request.
This project is licensed under the MIT License.
- First release
krodgers |