mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFloatSourceParserPair

func CreateFloatSourceParserPair(blocksAsFloat [][][]float64, caseDataPerBlock [][]int, failAfter int) (traceSource.TraceBlockReader, wfm.TraceParser, error)

CreateFloatSourceParserPair creates a block reader and parser with len(blocksAsFloats) blocks where block nr x contains the traces blocksAsFloat[x]. If failAfter is >= 0 the block reader will fail for each number greater than failAfter

func ParseCSVToFloat64

func ParseCSVToFloat64(csvData []byte) ([][]float64, error)

ParseCSVToFloat64 takes a raw csv file and parses each line as into a float64 slice

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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