asciistat

package
v4.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package asciistat draws boxplot like statistics as ASCII art.

Sensible:              --------[------M---------]------|--)-----
   |------+----+--|--------------|--------------|--------------|--------------|
  1ms            10ms          100ms           1s             10s            100s

Legend:
   Full range indicated by  -----------------------------
   Median indicated by      --------------M--------------
   25% to 75% indicated by  --------[-----M--]-----------
   90% indicated by         --------[-----M--]-----|-----
   98% indicated by         --------[-----M--]-----|--)--

Works well for data raning from 1 to 100*1e9 if the range is not to small.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plot

func Plot(w io.Writer, measurements []Data, unit string, log bool, width int)

Plot the given measurement to w. The full (labels+graph) plot has the given width. If log than a logarithmic axis is used if possible.

Types

type Data

type Data struct {
	Name   string
	Values []int
}

Data is a named list of integers.

type Percentil

type Percentil struct {
	P float64 // Percentil in [0, 1]
	V float64 // Value
	S rune    // Symbol to display
}

Percentil represents a percentil value.

Jump to

Keyboard shortcuts

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