Skip to content

karodgers/math-skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Statistics Calculator

Statistics Calculator Logo

Overview

Purpose

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.

Usage

To use the Statistics Calculator:

  1. Prepare a .txt file named data.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
    ...
    
  2. 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 and data.txt with the path to your dataset file.

Expected Output

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.

Notes

Installation

No installation is necessary. Clone the repository, navigate to the folder containing the files, and execute the program using provided commands.

Configuration

There are no configuration options available for this project.

Contributing

Contributions to this project are welcomed. Fork the repository, implement your changes, and submit a pull request.

License

This project is licensed under the MIT License.

Changelog

  • First release

Author

Emmanuel
krodgers

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages