bins

package
v0.0.0-...-b4abd3a Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesExist

func FilesExist(outputDir string, jobid int, rank int, listBins []int) bool

func GetFromInputDescr

func GetFromInputDescr(binStr string) []int

GetBinsFromInputDescr parses the string describing a series of threshold to use for the organization of data into bins and returns a slice of int with each element being a threshold

func Save

func Save(dir string, jobid, rank int, bins []Data) error

Save writes the data of all the bins into output file. The output files are created in a target output directory.

Types

type Data

type Data struct {
	Min  int
	Max  int
	Size int
}

func Create

func Create(listBins []int) []Data

func GetFromCounts

func GetFromCounts(counts []string, bins []Data, numCalls int, datatypeSize int) ([]Data, error)

func GetFromFile

func GetFromFile(filePath string, listBins []int) ([]Data, error)

GetFromFile opens a count file and classify all counts into bins based on a list of threshold sizes

func GetFromReader

func GetFromReader(reader *bufio.Reader, listBins []int) ([]Data, error)

GetFromReader parses a count file using a provided reader and classify all counts into bins based on the threshold specified through a slice of integers.

Jump to

Keyboard shortcuts

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