Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Comparable ¶
Comparable provides a way for Matcher to read the comparison data.
type ComparablePatient ¶
ComparablePatient is the patient data to be compared.
type Deterministic ¶
type Deterministic struct {
Keys []string
}
Deterministic defines the keys to be used for deterministic comparisons.
func (*Deterministic) Match ¶
func (d *Deterministic) Match(a Comparable, b Comparable) (float64, error)
Match is a Matcher implementation of Deterministic. The result will be 0 or 1.
type Matcher ¶
type Matcher interface {
Match(a Comparable, b Comparable) (float64, error)
}
Matcher returns the result of the comparison as a float64.
type Probabilistic ¶
type Probabilistic struct {
Probabilities []Probability
}
Probabilistic defines the probability of a key to perform a probabilistic comparison
func (*Probabilistic) Match ¶
func (p *Probabilistic) Match(a Comparable, b Comparable) (float64, error)
Match is a Matcher implementation of Probabilistic.
Click to show internal directories.
Click to hide internal directories.