scorer

package
v0.0.0-...-36cd861 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RFirst         = 0
	RConsonant     = 1
	RDistance1     = 2
	RDistance2     = 3
	RDistance3     = 4
	RDistance4     = 5
	RDistanceOther = 6
	DFirst         = 7
	DLast          = 8
	DMiddle        = 9
	IFirst         = 10
	IMiddle        = 11
	T              = 12
	U              = 13
	P              = 14
	J              = 15
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyLocation

type KeyLocation struct {
	X float64
	Y float64
}

type Vector

type Vector struct {
	Xs []float64
}

func InitVector

func InitVector(length int) *Vector

func RandomVector

func RandomVector(length int) *Vector

func (*Vector) Add

func (a *Vector) Add(b *Vector) *Vector

func (*Vector) Clone

func (a *Vector) Clone() *Vector

func (*Vector) Dump

func (inequality *Vector) Dump()

func (*Vector) EqualTo

func (a *Vector) EqualTo(b *Vector) bool

func (*Vector) IsSatisfied

func (a *Vector) IsSatisfied(wights *Vector) bool

func (*Vector) IsZero

func (a *Vector) IsZero() bool

func (*Vector) Len

func (a *Vector) Len() int

func (*Vector) MoveToward

func (a *Vector) MoveToward(vector *Vector, l float64) *Vector

func (*Vector) ScalarMul

func (a *Vector) ScalarMul(wights *Vector) float64

func (*Vector) Sub

func (a *Vector) Sub(b *Vector) *Vector

func (*Vector) Variate

func (a *Vector) Variate(min, max, d float64) []*Vector

type Vectoriser

type Vectoriser struct {
}

func InitVectoriser

func InitVectoriser() *Vectoriser

func (*Vectoriser) Vectorize

func (maker *Vectoriser) Vectorize(prescription *spell.EditorialPrescription) *Vector

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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