Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultDistributionName = "linear"
)
Functions ¶
This section is empty.
Types ¶
type Bounds ¶
type ConditionalValue ¶
ConditionalValue wraps an Inner value that will only be returned if the Condition returns true.
type Distribution ¶
type Distribution struct {
// contains filtered or unexported fields
}
func LookupDistribution ¶
func LookupDistribution(name string) *Distribution
func (*Distribution) Normalize ¶
func (d *Distribution) Normalize(v float64) float64
func (*Distribution) String ¶
func (d *Distribution) String() string
type Field ¶
type Field string
Field implements the Value interface, but simply returns the raw value of the named field.
type Input ¶
type Input struct { Source Value Bounds *Bounds Distribution *Distribution Tags []string Weight float64 }
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is used to map a name to a Factory that creates Algorithm instances for the given name.
func (*Registry) NewAlgorithm ¶
NewAlgorithm generates a new instance of Algorithm for the supplied name and fields.
If the registry does not have a Factory for the supplied name an error will be returned.
If the Algorithm fails to be created by the Factory, an error will also be returned and the Algorithm will be nil.
Directories
¶
Path | Synopsis |
---|---|
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.