This project is a statistical calculator designed to calculate various statistical measures from a dataset provided in a file. It calculates the average, median, variance, and standard deviation of the dataset.
To install and run the project, follow these steps:
- Make sure you have Go installed on your machine.
- Clone the repository from here.
- Navigate to the project directory.
cd math-skills
- Run the following command:
go run your-program.go data.txt
example:
go run . data.txtOnce the project is installed and running, it will calculate the statistical measures and print the results in the console. Follow the instructions mentioned above in the installation section. The data in the file will be presented as the following example:
189
113
121
114
145
110
...
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions to the project are welcome. If you'd like to contribute, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with clear, descriptive messages.
- Push your changes to your fork.
- Submit a pull request to the main repository.
Tests for the project are available in the math_test.go file. To run the tests, follow these steps:
- Navigate to the project directory.
cd mathfunctions/
- Run the following command:
go test -v
This will run all the tests in the project(mathfunctions) and display the results.
Feel free to reach out if you have any questions or need further assistance with the project.
contact : stephenonyango4783@gmail.com
Contributions and feedback are appreciated!