
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
github.com/riqueemn/statistics
Pacote com funções para a linguagem Go que retornam cálculos estatísticos (médias, desvio padrão, etc...)
Criado com o intuito de compensar a precariedade de pacotes com cálculos estatísticos
Fico feliz quem puder contribuir! :)
Ex.:
Para retornar a media de n valores
media := statistics.Media(valores, quantidade)
Lista de funções:
Soma(valores []float64, qtd int) float64 -> Retorna a Somatóra dos valores no slice
Media(valores []float64, qtd int) float64 -> "" Media dos valores no slice
DesvioPadrao(valores []float64, qtd int) float64 -> "" Desvio padrão dos valores no slice
MaxDeTresValores(a float64, b float64, c float64) float64 -> "" Máximo entre três valores
Amount(valores []float64, x float64, qtd int) float64 -> "" Soma dos quadrados dos N valores no slice
SomaPonderada(valores []float64, pesos []float64) float64 -> "" Soma ponderada
MediaPonderada(valores []float64, pesos []float64) float64 -> "" Média ponderada
MaiorValor(valores []float64) float64 -> "" Maior valor de N valores
MenorValor(valores []float64) float64 -> "" Menor valor de N valores
DesvioPadraoEM(valores []float64, media float64, qtd int) float64 -> "" Calcula o desvio padrão com base em uma média específica
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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.