lib

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.0.1"

Variables

This section is empty.

Functions

func DoSelfUpdate

func DoSelfUpdate() (bool, error)

func ReadCSV

func ReadCSV(filename string) ([][]string, error)

func ReadCSVAsSlice

func ReadCSVAsSlice(filename string) ([]string, error)

Types

type DepthOptions

type DepthOptions struct {
	MaxLog      int
	MinParallel int
	MaxParallel int
	MaxStorage  int
}

type Iroha

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

func NewIroha

func NewIroha(words []string, storage storage.Storage, options *DepthOptions) *Iroha

func (*Iroha) PrintWordByKatakanaMap

func (i *Iroha) PrintWordByKatakanaMap()

func (*Iroha) PrintWordCountMap

func (i *Iroha) PrintWordCountMap()

func (*Iroha) Search

func (i *Iroha) Search() (rowIndicesList [][]int, err error)

type Log

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

func NewLog

func NewLog(katakanaBitsAndWordsList []*ktkn.KatakanaBitsAndWords, depthThreshold, maxParallelDepth int) *Log

func (*Log) PrintProgressLog

func (l *Log) PrintProgressLog(depth int, msg string)

type TimeMeasurer

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

func NewTimeMeasurer

func NewTimeMeasurer() *TimeMeasurer

func NewTimeMeasurerAndStart

func NewTimeMeasurerAndStart() *TimeMeasurer

func (*TimeMeasurer) GetElapsedTimeSec

func (t *TimeMeasurer) GetElapsedTimeSec() float64

func (*TimeMeasurer) Start

func (t *TimeMeasurer) Start()

Jump to

Keyboard shortcuts

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