types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceWeighted

type InterfaceWeighted interface {
	GetProbability() float64
}

InterfaceWeighted interface to represent a weighted object

type WeightedElement

type WeightedElement struct {
	Probability float64 `json:"probability"`
}

WeightedElement represents a probability based weighted object

func (WeightedElement) GetProbability

func (we WeightedElement) GetProbability() float64

GetProbability gets match probability

Jump to

Keyboard shortcuts

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