histogram

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package histogram provides a Go implementation of BigML's histogram package for Clojure/Java. It is currently experimental.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bin

type Bin struct {
	Count int
	Sum   float64
}

func (*Bin) Mean

func (b *Bin) Mean() float64

func (*Bin) Update

func (b *Bin) Update(x *Bin)

type Bins

type Bins []*Bin

func (Bins) Len

func (bs Bins) Len() int

func (Bins) Less

func (bs Bins) Less(i, j int) bool

func (*Bins) Pop

func (bs *Bins) Pop() interface{}

func (*Bins) Push

func (bs *Bins) Push(x interface{})

func (Bins) Swap

func (bs Bins) Swap(i, j int)

type Histogram

type Histogram struct {
	// contains filtered or unexported fields
}

func New

func New(maxBins int) *Histogram

func (*Histogram) Bins

func (h *Histogram) Bins() Bins

func (*Histogram) Insert

func (h *Histogram) Insert(f float64)

Jump to

Keyboard shortcuts

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