wam

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 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 WeighetedArithmeticMean

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

func (*WeighetedArithmeticMean) Score

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

Jump to

Keyboard shortcuts

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