genkey

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DynamicFlag bool // flag from args (not used now)
View Source
var FingerNames = [8]string{"LP", "LR", "LM", "LI", "RI", "RM", "RR", "RP"}
View Source
var SlideFlag bool // flag from args (not used now)
View Source
var StaggerFlag bool // flag from args (not used now)
View Source
var Weight WeightData

Functions

func Analyze

func Analyze(keys []string, fingers []string) Analysis

public function that should be called from api

func ColRow

func ColRow(pos int) (int, int)

unnesasery now

func DuplicatesAndMissing

func DuplicatesAndMissing(l Layout) ([]string, []string)

unnesasery now

func DynamicFingerSpeed

func DynamicFingerSpeed(l *Layout, weighted bool) []float64

if add dynamic flag

func DynamicSFBs

func DynamicSFBs(l Layout) float64

if add dynamic flag

func FastTrigrams

func FastTrigrams(l Layout, precision int) TrigramValues

FastTrigrams approximates trigram counts with a given precision (precision=0 gives full data). It returns a count of {rolls, alternates, onehands, redirects, total} +

func FingerSpeed

func FingerSpeed(l *Layout, weighted bool) []float64

+

func GenKeymap

func GenKeymap(keys [][]string) map[string]Pos

+

func IndexUsage

func IndexUsage(l Layout) (float64, float64)

+

func LSBs

func LSBs(l Layout) int

+

func ListDynamic

func ListDynamic(l Layout) ([]FreqPair, []FreqPair)

if add dynamic flag

func ListLSBs

func ListLSBs(l Layout) []FreqPair

func ListSFBs

func ListSFBs(l Layout, skipgrams bool) []FreqPair

+

func ListWorstBigrams

func ListWorstBigrams(l Layout) []FreqPair

+

func SFBs

func SFBs(l Layout, skipgrams bool) float64

+

func Score

func Score(l Layout) float64

Count total score of layout

func Similarity

func Similarity(a, b []string) int

unnesasery now

func SortFreqList

func SortFreqList(pairs []FreqPair)

+

Types

This section is empty.

Jump to

Keyboard shortcuts

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