Versions in this module Expand all Collapse all v0 v0.8.3 Jul 18, 2023 Changes in this version + var CACHEFILENAME string = filepath.Join(os.TempDir(), "fileDistance.cache") + func DistBytes(x, y []byte) float64 + func DistFile(f1, f2 string) float64 + func DistString(xs, ys string) float64 + func ExtractText(fname string) []byte + func FilesInFolder(folder string) []string + type Cache struct + M map[[sha256.Size * 2]byte]float64 + func NewCache() *Cache + func (c *Cache) Clear() + func (c *Cache) Get(f1, f2 string) float64 + func (c *Cache) Save() + func (c *Cache) Size() int + type Matrix struct + func ComputeEuclid(vects []Vect) (mat *Matrix) + func ComputeFiles(fnames ...string) *Matrix + func ComputeFolder(folder string) *Matrix + func ComputeString(ss []string) (mat *Matrix) + func (m *Matrix) Dist(i, j int) float64 + func (m *Matrix) Set(i, j int, d float64) + func (m *Matrix) Size() int + func (m *Matrix) String() string + type Vect = []float64