Documentation ¶
Overview ¶
Package analysis contains the functions needed to analyze lines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AverageTransitionProbability ¶
func AverageTransitionProbability(line string, occurrences [][]float64, position map[rune]int) (float64, error)
AverageTransitionProbability returns the probability of generating the input string digraph by digraph according to the occurrences matrix.
func GetDigraphs ¶
GetDigraphs returns pairs of adjacent runes, after normalizing the input line.
func MaxForSlice ¶
MaxForSlice returns the maximum value in a float64 slice.
func MinForSlice ¶
MinForSlice returns the minimum value in a float64 slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.