Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFormatter ¶ added in v1.1.0
func NewFormatter(results results) *formatter
Types ¶
type Comparer ¶
type Comparer interface { encoding.BinaryMarshaler Compare(element []byte) (distance float64, comparedElement string, err error) }
Compare receives an encoded version of the element stored in the tree `distance` controls how the elements will be partitioned in the hyperplane Ideally, the method should follow the requirements of a distance function See: https://en.wikipedia.org/wiki/Metric_(mathematics)#Definition
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
func (*Tree) Add ¶
Add recursively traversals the tree to find the correct insert position for the element
func (*Tree) Plot ¶
Writes to the writer a graph following the DOT spec https://en.wikipedia.org/wiki/DOT_(graph_description_language)
Click to show internal directories.
Click to hide internal directories.