Documentation ¶
Index ¶
- func AddDataFromFile(filename string, locationRangeFile string) error
- func ClearDataMap()
- func CutDataMap(newDataMap *(map[int][]Point), start int, end int)
- func DeleteSkecth(isDFT bool)
- func DirectCompute(thres float64, start int, end int) []int
- func GetBasicWindowSize() int
- func GetCorrelationMatrix(queryStart int, length int) []float64
- func GetDataMapInfo() int
- func GetLatitudes() []float64
- func GetLatitudesIdx() []int
- func GetLocations() []int
- func GetLongitudes() []float64
- func GetLongitudesIdx() []int
- func GetMatrix() []int
- func GetNetworkUnweighted(queryStart int, length int, thres float64) []int
- func GetNetworkWeightedRatio(queryStart int, length int, rho float64) []float64
- func GetNumberOfBW(granularity int) int
- func GetRealMatrix() []float64
- func GetTimeSeriesLength() int
- func GetTimeSeriesNum() int
- func GetTransitivity(arr []float64) float64
- func Init()
- func InitDB(username string, password_ string)
- func InitMatrix()
- func Query(thres float64, queryStart int, queryEnd int) []int
- func QueryInDB(thres float64, start int, end int, granularity int) []int
- func ReadFile(filename string)
- func ReadFileByLocation(filename string, locationRangeFile string)
- func ReadFiles(dirname string) error
- func ReadFilesByLocation(dirname string, locationRangeFile string) error
- func ResetSketch()
- func SetBasicWindowSize(size int)
- func Sketch() string
- func SketchInDB()
- func Slide(start int, cnt int, qsize int, bwsize int, offset int, rho float64) []float64
- type BasicWindowDFTResult
- type BasicWindowResult
- type DataOfChannel
- type Pair
- type Point
- type RowBWR
- type RowBWRDFT
- type SerializedPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDataFromFile ¶
func CutDataMap ¶
Get a slice of dataMap
func DeleteSkecth ¶
func DeleteSkecth(isDFT bool)
func GetCorrelationMatrix ¶
Get realMatrix
func GetNetworkUnweighted ¶
Get matrix
func GetNetworkWeightedRatio ¶
func GetRealMatrix ¶
func GetRealMatrix() []float64
func GetTransitivity ¶
func InitMatrix ¶
func InitMatrix()
func ReadFileByLocation ¶
func ReadFilesByLocation ¶
func ResetSketch ¶
func ResetSketch()
func SketchInDB ¶
func SketchInDB()
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 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
Click to show internal directories.
Click to hide internal directories.