Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NameFromFilepath ¶
Types ¶
type Config ¶
Config is used to specify an algorithm and its given set of Fields and Options.
This structure is used for parsing a YAML file and returning an instance of an Algorithm based on the configuration.
func LoadConfig ¶
LoadConfig will parse the YAML data from the reader and return a Config that can be used to obtain an Algorithm instance.
If the data cannot be parsed an error will be returned.
type Input ¶
type Input struct { Bounds *algorithm.Bounds `yaml:"bounds"` Condition *Condition `yaml:"condition"` Field string `yaml:"field"` Distribution string `yaml:"distribution"` Tags []string `yaml:"tags"` Weight float64 `yaml:"weight"` }
func (*Input) ToAlgorithmInput ¶
ToAlgorithmInput returns an instance of algorithm.Input that is constructed.
func (*Input) UnmarshalYAML ¶
UnmarshalYAML Implements yaml.Unmarshaler interface.
type Scorer ¶
type Scorer struct {
// contains filtered or unexported fields
}
func FromDefaultConfig ¶
func FromDefaultConfig() *Scorer
Directories ¶
Path | Synopsis |
---|---|
wam
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.
|
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. |
Click to show internal directories.
Click to hide internal directories.