wam

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package wam implements the Weighted Arithmetic Mean, which forms the basis of Rob Pike's criticality score algorithm as documented in Quantifying_criticality_algorithm.pdf.

Index

Constants

View Source
const Name = "weighted_arithmetic_mean"

Variables

This section is empty.

Functions

func New

func New(inputs []*algorithm.Input) (algorithm.Algorithm, error)

New returns a new instance of the Weighted Arithmetic Mean algorithm, which is used by the Pike algorithm.

Types

type WeightedArithmeticMean

type WeightedArithmeticMean struct {
	// contains filtered or unexported fields
}

WeightedArithmeticMean is an implementation of the Weighted Arithmetic Mean. https://en.wikipedia.org/wiki/Weighted_arithmetic_mean

func (*WeightedArithmeticMean) Score

func (p *WeightedArithmeticMean) Score(record map[string]float64) float64

Jump to

Keyboard shortcuts

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