tsubasa

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 15 Imported by: 0

README

tsubasa

Overview

This package is used for climate network construction.

Install

go get github.com/js061/DataIntelligenceCrew/tsubasa/tsubasa@v0.0.1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDataFromFile

func AddDataFromFile(filename string, locationRangeFile string) error

func ClearDataMap

func ClearDataMap()

Clear dataMap

func CutDataMap

func CutDataMap(newDataMap *(map[int][]Point), start int, end int)

Get a slice of dataMap

func DeleteSkecth

func DeleteSkecth(isDFT bool)

func DirectCompute

func DirectCompute(thres float64, start int, end int) []int

func GetBasicWindowSize

func GetBasicWindowSize() int

Get Basic Window Size

func GetCorrelationMatrix

func GetCorrelationMatrix(queryStart int, length int) []float64

Get realMatrix

func GetDataMapInfo

func GetDataMapInfo() int

Get the information of dataMap

func GetLatitudes

func GetLatitudes() []float64

Get the latitudes

func GetLatitudesIdx

func GetLatitudesIdx() []int

Get the latitudes

func GetLocations

func GetLocations() []int

Get locations

func GetLongitudes

func GetLongitudes() []float64

Get the longitudes

func GetLongitudesIdx

func GetLongitudesIdx() []int

Get the longitudes

func GetMatrix

func GetMatrix() []int

func GetNetworkUnweighted

func GetNetworkUnweighted(queryStart int, length int, thres float64) []int

Get matrix

func GetNetworkWeightedRatio

func GetNetworkWeightedRatio(queryStart int, length int, rho float64) []float64

func GetNumberOfBW

func GetNumberOfBW(granularity int) int

Get the number of basic windows

func GetRealMatrix

func GetRealMatrix() []float64

func GetTimeSeriesLength

func GetTimeSeriesLength() int

Get length of time series

func GetTimeSeriesNum

func GetTimeSeriesNum() int

Get the length of dataMap

func GetTransitivity

func GetTransitivity(arr []float64) float64

func Init

func Init()

func InitDB

func InitDB(username string, password_ string)

func InitMatrix

func InitMatrix()

func Query

func Query(thres float64, queryStart int, queryEnd int) []int

func QueryInDB

func QueryInDB(thres float64, start int, end int, granularity int) []int

func ReadFile

func ReadFile(filename string)

func ReadFileByLocation

func ReadFileByLocation(filename string, locationRangeFile string)

func ReadFiles

func ReadFiles(dirname string) error

func ReadFilesByLocation

func ReadFilesByLocation(dirname string, locationRangeFile string) error

func ResetSketch

func ResetSketch()

func SetBasicWindowSize

func SetBasicWindowSize(size int)

Set Basic Window Size

func Sketch

func Sketch() string

func SketchInDB

func SketchInDB()

func Slide

func Slide(start int, cnt int, qsize int, bwsize int, offset int, rho float64) []float64

Types

type BasicWindowDFTResult

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

Struct to store basic window dft statistics

type BasicWindowResult

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

Struct to store basic window statistics

type DataOfChannel

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

Data stored in channel

type Pair

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

type Point

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

Struct for data point

type RowBWR

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

Serialized BasicWindowResult

type RowBWRDFT

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

Serialized BasicWindowDFTResult

type SerializedPair

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

Struct for insertion to db, unique to each other

Jump to

Keyboard shortcuts

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