Documentation ¶
Index ¶
- Constants
- type KeyLocation
- type Vector
- func (a *Vector) Add(b *Vector) *Vector
- func (a *Vector) Clone() *Vector
- func (inequality *Vector) Dump()
- func (a *Vector) EqualTo(b *Vector) bool
- func (a *Vector) IsSatisfied(wights *Vector) bool
- func (a *Vector) IsZero() bool
- func (a *Vector) Len() int
- func (a *Vector) MoveToward(vector *Vector, l float64) *Vector
- func (a *Vector) ScalarMul(wights *Vector) float64
- func (a *Vector) Sub(b *Vector) *Vector
- func (a *Vector) Variate(min, max, d float64) []*Vector
- type Vectoriser
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 Vector ¶
type Vector struct {
Xs []float64
}
func InitVector ¶
func RandomVector ¶
func (*Vector) IsSatisfied ¶
type Vectoriser ¶
type Vectoriser struct { }
func InitVectoriser ¶
func InitVectoriser() *Vectoriser
func (*Vectoriser) Vectorize ¶
func (maker *Vectoriser) Vectorize(prescription *spell.EditorialPrescription) *Vector
Click to show internal directories.
Click to hide internal directories.