structures

package
v0.0.0-...-9e34a23 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const PATTERN_SIZE = 5
View Source
const STRING_SIZE = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Matrix

type Matrix struct {
	Rows   int
	Cols   int
	Values [][]int
}

func Allocate

func Allocate(rows, cols int) Matrix

type PipeTask

type PipeTask struct {
	// helpers
	Num             int
	Generated       bool
	Dbscan_mode     bool
	Pattern_matched bool

	// time labels
	Start_generating time.Time
	End_generatig    time.Time
	Start_dbscan     time.Time
	End_dbscan       time.Time
	Start_match      time.Time
	End_match        time.Time

	// data
	Source        Matrix
	Dbscan        Matrix
	Pattern_index int
}

type Queue

type Queue struct {
	Queue [](*PipeTask)
	Size  int
}

func (*Queue) Dequeue

func (qu *Queue) Dequeue() *PipeTask

func (*Queue) Enqueue

func (qu *Queue) Enqueue(t *PipeTask)

Jump to

Keyboard shortcuts

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