Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.