package report
import "git.dotya.ml/wanderer/math-optim/report"
Package report provides functions for constructing/generating report files.
Index ¶
- func GetOutPrefix() string
- func GetPicsDir() string
- func GetTexDir() string
- func SaveAndPrint(doPrint bool)
- func SaveComparisonOfMeans(p PicList, benchCount int)
- func SavePicsToFile(pls, plsMean []PicList, algoName string)
- func SaveTableToFile(t Table)
- func SaveTexAllPics()
- func SaveTexAllTables()
- type Pic
- type PicList
- type PlotPics
- type Row
- type Table
Functions ¶
func GetOutPrefix ¶
func GetOutPrefix() string
func GetPicsDir ¶
func GetPicsDir() string
GetPicsDirPrefix returns the path to the folder meant for plot pics.
func GetTexDir ¶
func GetTexDir() string
GetPicsDirPrefix returns the path to the folder meant for tex files.
func SaveAndPrint ¶
func SaveAndPrint(doPrint bool)
SaveAndPrint emits the tex files necessary to compile the report in full (report.tex, meta.sty) and prints the report.tex file to console.
func SaveComparisonOfMeans ¶
SaveComparisonOfMeans saves each pic in the list to file, takes note of the saved file names.
func SavePicsToFile ¶
SavePicsToFile saves each pic list for all bench funcs of a specified algo to a file.
func SaveTableToFile ¶
func SaveTableToFile(t Table)
func SaveTexAllPics ¶
func SaveTexAllPics()
SaveTexAllPics feeds all paths of generated pics to a template that creates `allpics.tex` file, which then aggregates all tex files tracking plot pics in one place.
func SaveTexAllTables ¶
func SaveTexAllTables()
Types ¶
type Pic ¶
Pic holds path to pic along with its caption. Bench field is set optionally (e.g. in case of the pic depicting comparison of means).
func NewPic ¶
func NewPic() *Pic
NewPic returns a new copy of Pic.
type PicList ¶
PicList is a structure holding a slice of pics and {bench,algo} metadata.
func NewPicList ¶
func NewPicList() *PicList
NewPicList returns a new copy of PicList.
type PlotPics ¶
type PlotPics []Pic
func (PlotPics) Len ¶
Len implements the sort.Interface.
func (PlotPics) Less ¶
Less implements the sort.Interface. note: sorting based on filename
func (PlotPics) Swap ¶
Swap implements the sort.Interface.
type Row ¶
type Row struct { // Title of the row should contain the settings used to get the Values. Title string Values []float64 }
func NewRow ¶
func NewRow() *Row
type Table ¶
func NewTable ¶
func NewTable() *Table
Source Files ¶
allPics.go allTables.go comparisonOfMeans.go doc.go pic.go report.go table.go
- Version
- v0.0.0-20230224152531-7a5de808e98c (latest)
- Published
- Feb 24, 2023
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 3 months ago –
Tools for package owners.