signature

package
v0.0.0-...-2854290 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AreaFlags = map[AreaType]bool{
	BasicAreaType: true,
	RowAreaType:   true,
	ColAreaType:   true,
	GridAreaType:  true,
}
View Source
var Debug = false

Functions

This section is empty.

Types

type AreaThresholdWeights

type AreaThresholdWeights map[AreaType]float64

type AreaType

type AreaType int
const (
	BasicAreaType AreaType = iota
	RowAreaType
	ColAreaType
	GridAreaType
)

func (AreaType) String

func (t AreaType) String() string

type ColFeatureMap

type ColFeatureMap map[int]features.FeatureMap

func (ColFeatureMap) GoString

func (m ColFeatureMap) GoString() string

type GridFeatureMap

type GridFeatureMap map[[2]int]features.FeatureMap

func (GridFeatureMap) GoString

func (m GridFeatureMap) GoString() string

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(rows, cols uint16, template *Model) *Model

func (*Model) AreaFilter

func (model *Model) AreaFilter(fieldThreshold float64, rowColThreshold float64) error

func (*Model) Basic

func (model *Model) Basic() features.FeatureMap

func (*Model) Col

func (model *Model) Col(c int) features.FeatureMap

func (*Model) ColsCount

func (model *Model) ColsCount() int

func (*Model) Extract

func (model *Model) Extract(sample *samples.Sample, nSamples int)

func (*Model) FeaturesCount

func (model *Model) FeaturesCount() (size uint64)

func (*Model) FieldsCount

func (model *Model) FieldsCount() int

func (*Model) GoString

func (model *Model) GoString() string

func (*Model) Grid

func (model *Model) Grid(r, c int) features.FeatureMap

func (*Model) Row

func (model *Model) Row(r int) features.FeatureMap

func (*Model) RowsCount

func (model *Model) RowsCount() int

func (*Model) Score

func (model *Model) Score(sample *samples.Sample) (Score, *Model)

func (*Model) StdFilter

func (model *Model) StdFilter(threshold float64) error

type RowFeatureMap

type RowFeatureMap map[int]features.FeatureMap

func (RowFeatureMap) GoString

func (m RowFeatureMap) GoString() string

type Score

type Score map[AreaType]float64

func (Score) Check

func (s Score) Check(t float64, weights AreaThresholdWeights) (bool, error)

type UserModel

type UserModel struct {
	Id    uint16
	Model *Model
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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