Versions in this module Expand all Collapse all v0 v0.1.1 Jul 5, 2018 Changes in this version type Intervals + func New(minLow, maxHigh int, ...) Intervals v0.1.0 Jun 28, 2018 Changes in this version + type ByHigh []*Interval + func (itvls ByHigh) Len() int + func (itvls ByHigh) Less(i, j int) bool + func (itvls ByHigh) Swap(i, j int) + type ByLow []*Interval + func (itvls ByLow) Len() int + func (itvls ByLow) Less(i, j int) bool + func (itvls ByLow) Swap(i, j int) + type Interval struct + High int + Low int + Object interface{} + func (itvl Interval) String() string + type IntervalPlot interface + AlignPlots func(plotItems []*Superplot, minLow, maxHigh int) *vgimg.Canvas + CreateFileFromCanvas func(path string, img *vgimg.Canvas) error + CreatePlot func(title string, xys plotter.XYs, plotType PlotType) (*Superplot, error) + PlotData func(path string, intervals Intervals, ...) error + func NewPlot(lowInclusive bool, highInclusive bool) IntervalPlot + type Intervals interface + Add func(low, high int, obj interface{}) error + AddInterval func(itvl *Interval) error + FindIntervalsForValue func(value int) []*Interval + Gaps func() []*Interval + GetIntervals func() []*Interval + GetMaxHigh func() int + GetMinLow func() int + HasGaps func() bool + HasOverlapped func() bool + IsHighInclusive func() bool + IsLowInclusive func() bool + Merge func() []*Interval + Overlapped func() []*Interval + func NewIntervals(minLow, maxHigh int, ...) Intervals + func NewIntervalsDefault() Intervals + type PlotType int + const PlotTypeGaps + const PlotTypeIntervals + const PlotTypeMerged + const PlotTypeOverlapped + type Superplot struct + NumElements int + Plot *plot.Plot