Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/riqueemn/statistics

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/riqueemn/statistics

  • v0.0.0-20200807162057-64c2f678a6e4
  • Source
  • Go
  • Socket score

Version published
Created
Source

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

Package last updated on 07 Aug 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc