avgRating

package module
v0.0.0-...-3b8cc7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2017 License: MIT Imports: 1 Imported by: 0

README

avgRating GoDoc Go Report Card cover.run go

Calculate average and scoring based on Wilson Score Equation

Port of https://github.com/ndaidong/average-rating

License

The MIT License (MIT)

Documentation

Overview

Package avgRating calculates average score and rating based on Wilson Score Equation Refer: https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval

Port of https://github.com/ndaidong/average-rating

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Average

func Average(rating [5]int) float64

Average rating

func GetWilsonScore

func GetWilsonScore(p, n float64) float64

GetWilsonScore returns Wilson Score

func Rate

func Rate(rating [5]int) float64

Rate calculates the rate based on given rating

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL