Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
github.com/talaamm/math-skills_april2024
This repository contains Math Skills, a program that calculates essential statistical measures: average, median, variance, and standard deviation. The program reads numerical data from a file and outputs the computed statistics.
This project was independently implemented by me and served as an opportunity to improve my programming and mathematical skills.
The program computes the following statistical measures:
Average
The arithmetic mean of the dataset.
1, 2, 3, 4, 5
, the average is 3
.Median
The middle value of the dataset when sorted.
1, 3, 5, 7, 9
, the median is 5
.Variance
The measure of dispersion, calculated as the average of the squared differences from the mean.
Standard Deviation
The square root of the variance, indicating how much the values deviate from the mean.
data.txt
):
189
113
121
114
145
110
To execute the program, provide the path to the data file as an argument.
$ go run math-skills.go <data_file>
For a file (data.txt
) containing:
10
20
30
40
50
The output will be:
Average: 30
Median: 30
Variance: 200
Standard Deviation: 14
This project was my first step into blending programming with statistical analysis. It was a rewarding challenge that enhanced both my coding and mathematical problem-solving abilities.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.