hep: go-hep.org/x/hep/groot/rhist Index | Examples | Files

package rhist

import "go-hep.org/x/hep/groot/rhist"

Package rhist contains the interfaces and definitions of ROOT types related to histograms and graphs.

Index

Examples

Package Files

axis.go graph.go h1_gen.go h2_gen.go hist.go rhist.go

func NewAxis Uses

func NewAxis(name string) *taxis

type Axis Uses

type Axis interface {
    root.Named

    XMin() float64
    XMax() float64
    NBins() int
    XBins() []float64
    BinCenter(int) float64
    BinLowEdge(int) float64
    BinWidth(int) float64
}

Axis describes a ROOT TAxis.

type Graph Uses

type Graph interface {
    root.Named

    Len() int
    XY(i int) (float64, float64)
}

Graph describes a ROOT TGraph

Code:

f, err := groot.Open("../testdata/graphs.root")
if err != nil {
    log.Fatal(err)
}
defer f.Close()

obj, err := f.Get("tg")
if err != nil {
    log.Fatal(err)
}

g := obj.(rhist.Graph)
fmt.Printf("name:  %q\n", g.Name())
fmt.Printf("title: %q\n", g.Title())
fmt.Printf("#pts:  %d\n", g.Len())
for i := 0; i < g.Len(); i++ {
    x, y := g.XY(i)
    fmt.Printf("(x,y)[%d] = (%+e, %+e)\n", i, x, y)
}

Output:

name:  "tg"
title: "graph without errors"
#pts:  4
(x,y)[0] = (+1.000000e+00, +2.000000e+00)
(x,y)[1] = (+2.000000e+00, +4.000000e+00)
(x,y)[2] = (+3.000000e+00, +6.000000e+00)
(x,y)[3] = (+4.000000e+00, +8.000000e+00)

func NewGraphFrom Uses

func NewGraphFrom(s2 *hbook.S2D) Graph

NewGraphFrom creates a new Graph from 2-dim hbook data points.

type GraphErrors Uses

type GraphErrors interface {
    Graph
    // XError returns two error values for X data.
    XError(i int) (float64, float64)
    // YError returns two error values for Y data.
    YError(i int) (float64, float64)
}

GraphErrors describes a ROOT TGraphErrors

Code:

f, err := groot.Open("../testdata/graphs.root")
if err != nil {
    log.Fatal(err)
}
defer f.Close()

obj, err := f.Get("tge")
if err != nil {
    log.Fatal(err)
}

g := obj.(rhist.GraphErrors)
fmt.Printf("name:  %q\n", g.Name())
fmt.Printf("title: %q\n", g.Title())
fmt.Printf("#pts:  %d\n", g.Len())
for i := 0; i < g.Len(); i++ {
    x, y := g.XY(i)
    xlo, xhi := g.XError(i)
    ylo, yhi := g.YError(i)
    fmt.Printf("(x,y)[%d] = (%+e +/- [%+e, %+e], %+e +/- [%+e, %+e])\n", i, x, xlo, xhi, y, ylo, yhi)
}

Output:

name:  "tge"
title: "graph with errors"
#pts:  4
(x,y)[0] = (+1.000000e+00 +/- [+1.000000e-01, +1.000000e-01], +2.000000e+00 +/- [+2.000000e-01, +2.000000e-01])
(x,y)[1] = (+2.000000e+00 +/- [+2.000000e-01, +2.000000e-01], +4.000000e+00 +/- [+4.000000e-01, +4.000000e-01])
(x,y)[2] = (+3.000000e+00 +/- [+3.000000e-01, +3.000000e-01], +6.000000e+00 +/- [+6.000000e-01, +6.000000e-01])
(x,y)[3] = (+4.000000e+00 +/- [+4.000000e-01, +4.000000e-01], +8.000000e+00 +/- [+8.000000e-01, +8.000000e-01])

Code:

f, err := groot.Open("../testdata/graphs.root")
if err != nil {
    log.Fatal(err)
}
defer f.Close()

obj, err := f.Get("tgae")
if err != nil {
    log.Fatal(err)
}

g := obj.(rhist.GraphErrors)
fmt.Printf("name:  %q\n", g.Name())
fmt.Printf("title: %q\n", g.Title())
fmt.Printf("#pts:  %d\n", g.Len())
for i := 0; i < g.Len(); i++ {
    x, y := g.XY(i)
    xlo, xhi := g.XError(i)
    ylo, yhi := g.YError(i)
    fmt.Printf("(x,y)[%d] = (%+e +/- [%+e, %+e], %+e +/- [%+e, %+e])\n", i, x, xlo, xhi, y, ylo, yhi)
}

Output:

name:  "tgae"
title: "graph with asymmetric errors"
#pts:  4
(x,y)[0] = (+1.000000e+00 +/- [+1.000000e-01, +2.000000e-01], +2.000000e+00 +/- [+3.000000e-01, +4.000000e-01])
(x,y)[1] = (+2.000000e+00 +/- [+2.000000e-01, +4.000000e-01], +4.000000e+00 +/- [+6.000000e-01, +8.000000e-01])
(x,y)[2] = (+3.000000e+00 +/- [+3.000000e-01, +6.000000e-01], +6.000000e+00 +/- [+9.000000e-01, +1.200000e+00])
(x,y)[3] = (+4.000000e+00 +/- [+4.000000e-01, +8.000000e-01], +8.000000e+00 +/- [+1.200000e+00, +1.600000e+00])

func NewGraphAsymmErrorsFrom Uses

func NewGraphAsymmErrorsFrom(s2 *hbook.S2D) GraphErrors

NewGraphAsymmErrorsFrom creates a new GraphAsymErrors from 2-dim hbook data points.

func NewGraphErrorsFrom Uses

func NewGraphErrorsFrom(s2 *hbook.S2D) GraphErrors

NewGraphErrorsFrom creates a new GraphErrors from 2-dim hbook data points.

type H1 Uses

type H1 interface {
    root.Named

    // Entries returns the number of entries for this histogram.
    Entries() float64
    // SumW returns the total sum of weights
    SumW() float64
    // SumW2 returns the total sum of squares of weights
    SumW2() float64
    // SumWX returns the total sum of weights*x
    SumWX() float64
    // SumWX2 returns the total sum of weights*x*x
    SumWX2() float64
    // SumW2s returns the array of sum of squares of weights
    SumW2s() []float64
}

H1 is a 1-dim ROOT histogram

type H1D Uses

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

H1D implements ROOT TH1D

func NewH1DFrom Uses

func NewH1DFrom(h *hbook.H1D) *H1D

NewH1DFrom creates a new 1-dim histogram from hbook.

func (*H1D) Array Uses

func (h *H1D) Array() rcont.ArrayD

func (*H1D) Class Uses

func (*H1D) Class() string

Class returns the ROOT class name.

func (*H1D) Entries Uses

func (h *H1D) Entries() float64

Entries returns the number of entries for this histogram.

func (*H1D) MarshalROOT Uses

func (h *H1D) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*H1D) MarshalYODA Uses

func (h *H1D) MarshalYODA() ([]byte, error)

MarshalYODA implements the YODAMarshaler interface.

func (*H1D) NbinsX Uses

func (h *H1D) NbinsX() int

NbinsX returns the number of bins in X.

func (*H1D) RVersion Uses

func (*H1D) RVersion() int16

func (*H1D) Rank Uses

func (h *H1D) Rank() int

Rank returns the number of dimensions of this histogram.

func (*H1D) SumW Uses

func (h *H1D) SumW() float64

SumW returns the total sum of weights

func (*H1D) SumW2 Uses

func (h *H1D) SumW2() float64

SumW2 returns the total sum of squares of weights

func (*H1D) SumW2s Uses

func (h *H1D) SumW2s() []float64

SumW2s returns the array of sum of squares of weights

func (*H1D) SumWX Uses

func (h *H1D) SumWX() float64

SumWX returns the total sum of weights*x

func (*H1D) SumWX2 Uses

func (h *H1D) SumWX2() float64

SumWX2 returns the total sum of weights*x*x

func (*H1D) UnmarshalROOT Uses

func (h *H1D) UnmarshalROOT(r *rbytes.RBuffer) error

func (*H1D) UnmarshalYODA Uses

func (h *H1D) UnmarshalYODA(raw []byte) error

UnmarshalYODA implements the YODAUnmarshaler interface.

func (*H1D) XAxis Uses

func (h *H1D) XAxis() Axis

XAxis returns the axis along X.

func (*H1D) XBinCenter Uses

func (h *H1D) XBinCenter(i int) float64

XBinCenter returns the bin center value in X.

func (*H1D) XBinContent Uses

func (h *H1D) XBinContent(i int) float64

XBinContent returns the bin content value in X.

func (*H1D) XBinError Uses

func (h *H1D) XBinError(i int) float64

XBinError returns the bin error in X.

func (*H1D) XBinLowEdge Uses

func (h *H1D) XBinLowEdge(i int) float64

XBinLowEdge returns the bin lower edge value in X.

func (*H1D) XBinWidth Uses

func (h *H1D) XBinWidth(i int) float64

XBinWidth returns the bin width in X.

type H1F Uses

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

H1F implements ROOT TH1F

func NewH1FFrom Uses

func NewH1FFrom(h *hbook.H1D) *H1F

NewH1FFrom creates a new 1-dim histogram from hbook.

func (*H1F) Array Uses

func (h *H1F) Array() rcont.ArrayF

func (*H1F) Class Uses

func (*H1F) Class() string

Class returns the ROOT class name.

func (*H1F) Entries Uses

func (h *H1F) Entries() float64

Entries returns the number of entries for this histogram.

func (*H1F) MarshalROOT Uses

func (h *H1F) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*H1F) MarshalYODA Uses

func (h *H1F) MarshalYODA() ([]byte, error)

MarshalYODA implements the YODAMarshaler interface.

func (*H1F) NbinsX Uses

func (h *H1F) NbinsX() int

NbinsX returns the number of bins in X.

func (*H1F) RVersion Uses

func (*H1F) RVersion() int16

func (*H1F) Rank Uses

func (h *H1F) Rank() int

Rank returns the number of dimensions of this histogram.

func (*H1F) SumW Uses

func (h *H1F) SumW() float64

SumW returns the total sum of weights

func (*H1F) SumW2 Uses

func (h *H1F) SumW2() float64

SumW2 returns the total sum of squares of weights

func (*H1F) SumW2s Uses

func (h *H1F) SumW2s() []float64

SumW2s returns the array of sum of squares of weights

func (*H1F) SumWX Uses

func (h *H1F) SumWX() float64

SumWX returns the total sum of weights*x

func (*H1F) SumWX2 Uses

func (h *H1F) SumWX2() float64

SumWX2 returns the total sum of weights*x*x

func (*H1F) UnmarshalROOT Uses

func (h *H1F) UnmarshalROOT(r *rbytes.RBuffer) error

func (*H1F) UnmarshalYODA Uses

func (h *H1F) UnmarshalYODA(raw []byte) error

UnmarshalYODA implements the YODAUnmarshaler interface.

func (*H1F) XAxis Uses

func (h *H1F) XAxis() Axis

XAxis returns the axis along X.

func (*H1F) XBinCenter Uses

func (h *H1F) XBinCenter(i int) float64

XBinCenter returns the bin center value in X.

func (*H1F) XBinContent Uses

func (h *H1F) XBinContent(i int) float64

XBinContent returns the bin content value in X.

func (*H1F) XBinError Uses

func (h *H1F) XBinError(i int) float64

XBinError returns the bin error in X.

func (*H1F) XBinLowEdge Uses

func (h *H1F) XBinLowEdge(i int) float64

XBinLowEdge returns the bin lower edge value in X.

func (*H1F) XBinWidth Uses

func (h *H1F) XBinWidth(i int) float64

XBinWidth returns the bin width in X.

type H1I Uses

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

H1I implements ROOT TH1I

func NewH1IFrom Uses

func NewH1IFrom(h *hbook.H1D) *H1I

NewH1IFrom creates a new 1-dim histogram from hbook.

func (*H1I) Array Uses

func (h *H1I) Array() rcont.ArrayI

func (*H1I) Class Uses

func (*H1I) Class() string

Class returns the ROOT class name.

func (*H1I) Entries Uses

func (h *H1I) Entries() float64

Entries returns the number of entries for this histogram.

func (*H1I) MarshalROOT Uses

func (h *H1I) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*H1I) MarshalYODA Uses

func (h *H1I) MarshalYODA() ([]byte, error)

MarshalYODA implements the YODAMarshaler interface.

func (*H1I) NbinsX Uses

func (h *H1I) NbinsX() int

NbinsX returns the number of bins in X.

func (*H1I) RVersion Uses

func (*H1I) RVersion() int16

func (*H1I) Rank Uses

func (h *H1I) Rank() int

Rank returns the number of dimensions of this histogram.

func (*H1I) SumW Uses

func (h *H1I) SumW() float64

SumW returns the total sum of weights

func (*H1I) SumW2 Uses

func (h *H1I) SumW2() float64

SumW2 returns the total sum of squares of weights

func (*H1I) SumW2s Uses

func (h *H1I) SumW2s() []float64

SumW2s returns the array of sum of squares of weights

func (*H1I) SumWX Uses

func (h *H1I) SumWX() float64

SumWX returns the total sum of weights*x

func (*H1I) SumWX2 Uses

func (h *H1I) SumWX2() float64

SumWX2 returns the total sum of weights*x*x

func (*H1I) UnmarshalROOT Uses

func (h *H1I) UnmarshalROOT(r *rbytes.RBuffer) error

func (*H1I) UnmarshalYODA Uses

func (h *H1I) UnmarshalYODA(raw []byte) error

UnmarshalYODA implements the YODAUnmarshaler interface.

func (*H1I) XAxis Uses

func (h *H1I) XAxis() Axis

XAxis returns the axis along X.

func (*H1I) XBinCenter Uses

func (h *H1I) XBinCenter(i int) float64

XBinCenter returns the bin center value in X.

func (*H1I) XBinContent Uses

func (h *H1I) XBinContent(i int) float64

XBinContent returns the bin content value in X.

func (*H1I) XBinError Uses

func (h *H1I) XBinError(i int) float64

XBinError returns the bin error in X.

func (*H1I) XBinLowEdge Uses

func (h *H1I) XBinLowEdge(i int) float64

XBinLowEdge returns the bin lower edge value in X.

func (*H1I) XBinWidth Uses

func (h *H1I) XBinWidth(i int) float64

XBinWidth returns the bin width in X.

type H2 Uses

type H2 interface {
    root.Named

    // Entries returns the number of entries for this histogram.
    Entries() float64
    // SumW returns the total sum of weights
    SumW() float64
    // SumW2 returns the total sum of squares of weights
    SumW2() float64
    // SumWX returns the total sum of weights*x
    SumWX() float64
    // SumWX2 returns the total sum of weights*x*x
    SumWX2() float64
    // SumW2s returns the array of sum of squares of weights
    SumW2s() []float64
    // SumWY returns the total sum of weights*y
    SumWY() float64
    // SumWY2 returns the total sum of weights*y*y
    SumWY2() float64
    // SumWXY returns the total sum of weights*x*y
    SumWXY() float64
}

H2 is a 2-dim ROOT histogram

type H2D Uses

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

H2D implements ROOT TH2D

func NewH2DFrom Uses

func NewH2DFrom(h *hbook.H2D) *H2D

NewH2DFrom creates a new H2D from hbook 2-dim histogram.

func (*H2D) Array Uses

func (h *H2D) Array() rcont.ArrayD

func (*H2D) Class Uses

func (*H2D) Class() string

Class returns the ROOT class name.

func (*H2D) MarshalROOT Uses

func (h *H2D) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*H2D) MarshalYODA Uses

func (h *H2D) MarshalYODA() ([]byte, error)

MarshalYODA implements the YODAMarshaler interface.

func (*H2D) NbinsX Uses

func (h *H2D) NbinsX() int

NbinsX returns the number of bins in X.

func (*H2D) NbinsY Uses

func (h *H2D) NbinsY() int

NbinsY returns the number of bins in Y.

func (*H2D) RVersion Uses

func (*H2D) RVersion() int16

func (*H2D) Rank Uses

func (h *H2D) Rank() int

Rank returns the number of dimensions of this histogram.

func (*H2D) SumWXY Uses

func (h *H2D) SumWXY() float64

SumWXY returns the total sum of weights*x*y

func (*H2D) SumWY Uses

func (h *H2D) SumWY() float64

SumWY returns the total sum of weights*y

func (*H2D) SumWY2 Uses

func (h *H2D) SumWY2() float64

SumWY2 returns the total sum of weights*y*y

func (*H2D) UnmarshalROOT Uses

func (h *H2D) UnmarshalROOT(r *rbytes.RBuffer) error

func (*H2D) UnmarshalYODA Uses

func (h *H2D) UnmarshalYODA(raw []byte) error

UnmarshalYODA implements the YODAUnmarshaler interface.

func (*H2D) XAxis Uses

func (h *H2D) XAxis() Axis

XAxis returns the axis along X.

func (*H2D) XBinCenter Uses

func (h *H2D) XBinCenter(i int) float64

XBinCenter returns the bin center value in X.

func (*H2D) XBinContent Uses

func (h *H2D) XBinContent(i int) float64

XBinContent returns the bin content value in X.

func (*H2D) XBinError Uses

func (h *H2D) XBinError(i int) float64

XBinError returns the bin error in X.

func (*H2D) XBinLowEdge Uses

func (h *H2D) XBinLowEdge(i int) float64

XBinLowEdge returns the bin lower edge value in X.

func (*H2D) XBinWidth Uses

func (h *H2D) XBinWidth(i int) float64

XBinWidth returns the bin width in X.

func (*H2D) YAxis Uses

func (h *H2D) YAxis() Axis

YAxis returns the axis along Y.

func (*H2D) YBinCenter Uses

func (h *H2D) YBinCenter(i int) float64

YBinCenter returns the bin center value in Y.

func (*H2D) YBinContent Uses

func (h *H2D) YBinContent(i int) float64

YBinContent returns the bin content value in Y.

func (*H2D) YBinError Uses

func (h *H2D) YBinError(i int) float64

YBinError returns the bin error in Y.

func (*H2D) YBinLowEdge Uses

func (h *H2D) YBinLowEdge(i int) float64

YBinLowEdge returns the bin lower edge value in Y.

func (*H2D) YBinWidth Uses

func (h *H2D) YBinWidth(i int) float64

YBinWidth returns the bin width in Y.

type H2F Uses

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

H2F implements ROOT TH2F

func NewH2FFrom Uses

func NewH2FFrom(h *hbook.H2D) *H2F

NewH2FFrom creates a new H2F from hbook 2-dim histogram.

func (*H2F) Array Uses

func (h *H2F) Array() rcont.ArrayF

func (*H2F) Class Uses

func (*H2F) Class() string

Class returns the ROOT class name.

func (*H2F) MarshalROOT Uses

func (h *H2F) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*H2F) MarshalYODA Uses

func (h *H2F) MarshalYODA() ([]byte, error)

MarshalYODA implements the YODAMarshaler interface.

func (*H2F) NbinsX Uses

func (h *H2F) NbinsX() int

NbinsX returns the number of bins in X.

func (*H2F) NbinsY Uses

func (h *H2F) NbinsY() int

NbinsY returns the number of bins in Y.

func (*H2F) RVersion Uses

func (*H2F) RVersion() int16

func (*H2F) Rank Uses

func (h *H2F) Rank() int

Rank returns the number of dimensions of this histogram.

func (*H2F) SumWXY Uses

func (h *H2F) SumWXY() float64

SumWXY returns the total sum of weights*x*y

func (*H2F) SumWY Uses

func (h *H2F) SumWY() float64

SumWY returns the total sum of weights*y

func (*H2F) SumWY2 Uses

func (h *H2F) SumWY2() float64

SumWY2 returns the total sum of weights*y*y

func (*H2F) UnmarshalROOT Uses

func (h *H2F) UnmarshalROOT(r *rbytes.RBuffer) error

func (*H2F) UnmarshalYODA Uses

func (h *H2F) UnmarshalYODA(raw []byte) error

UnmarshalYODA implements the YODAUnmarshaler interface.

func (*H2F) XAxis Uses

func (h *H2F) XAxis() Axis

XAxis returns the axis along X.

func (*H2F) XBinCenter Uses

func (h *H2F) XBinCenter(i int) float64

XBinCenter returns the bin center value in X.

func (*H2F) XBinContent Uses

func (h *H2F) XBinContent(i int) float64

XBinContent returns the bin content value in X.

func (*H2F) XBinError Uses

func (h *H2F) XBinError(i int) float64

XBinError returns the bin error in X.

func (*H2F) XBinLowEdge Uses

func (h *H2F) XBinLowEdge(i int) float64

XBinLowEdge returns the bin lower edge value in X.

func (*H2F) XBinWidth Uses

func (h *H2F) XBinWidth(i int) float64

XBinWidth returns the bin width in X.

func (*H2F) YAxis Uses

func (h *H2F) YAxis() Axis

YAxis returns the axis along Y.

func (*H2F) YBinCenter Uses

func (h *H2F) YBinCenter(i int) float64

YBinCenter returns the bin center value in Y.

func (*H2F) YBinContent Uses

func (h *H2F) YBinContent(i int) float64

YBinContent returns the bin content value in Y.

func (*H2F) YBinError Uses

func (h *H2F) YBinError(i int) float64

YBinError returns the bin error in Y.

func (*H2F) YBinLowEdge Uses

func (h *H2F) YBinLowEdge(i int) float64

YBinLowEdge returns the bin lower edge value in Y.

func (*H2F) YBinWidth Uses

func (h *H2F) YBinWidth(i int) float64

YBinWidth returns the bin width in Y.

type H2I Uses

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

H2I implements ROOT TH2I

func NewH2IFrom Uses

func NewH2IFrom(h *hbook.H2D) *H2I

NewH2IFrom creates a new H2I from hbook 2-dim histogram.

func (*H2I) Array Uses

func (h *H2I) Array() rcont.ArrayI

func (*H2I) Class Uses

func (*H2I) Class() string

Class returns the ROOT class name.

func (*H2I) MarshalROOT Uses

func (h *H2I) MarshalROOT(w *rbytes.WBuffer) (int, error)

func (*H2I) MarshalYODA Uses

func (h *H2I) MarshalYODA() ([]byte, error)

MarshalYODA implements the YODAMarshaler interface.

func (*H2I) NbinsX Uses

func (h *H2I) NbinsX() int

NbinsX returns the number of bins in X.

func (*H2I) NbinsY Uses

func (h *H2I) NbinsY() int

NbinsY returns the number of bins in Y.

func (*H2I) RVersion Uses

func (*H2I) RVersion() int16

func (*H2I) Rank Uses

func (h *H2I) Rank() int

Rank returns the number of dimensions of this histogram.

func (*H2I) SumWXY Uses

func (h *H2I) SumWXY() float64

SumWXY returns the total sum of weights*x*y

func (*H2I) SumWY Uses

func (h *H2I) SumWY() float64

SumWY returns the total sum of weights*y

func (*H2I) SumWY2 Uses

func (h *H2I) SumWY2() float64

SumWY2 returns the total sum of weights*y*y

func (*H2I) UnmarshalROOT Uses

func (h *H2I) UnmarshalROOT(r *rbytes.RBuffer) error

func (*H2I) UnmarshalYODA Uses

func (h *H2I) UnmarshalYODA(raw []byte) error

UnmarshalYODA implements the YODAUnmarshaler interface.

func (*H2I) XAxis Uses

func (h *H2I) XAxis() Axis

XAxis returns the axis along X.

func (*H2I) XBinCenter Uses

func (h *H2I) XBinCenter(i int) float64

XBinCenter returns the bin center value in X.

func (*H2I) XBinContent Uses

func (h *H2I) XBinContent(i int) float64

XBinContent returns the bin content value in X.

func (*H2I) XBinError Uses

func (h *H2I) XBinError(i int) float64

XBinError returns the bin error in X.

func (*H2I) XBinLowEdge Uses

func (h *H2I) XBinLowEdge(i int) float64

XBinLowEdge returns the bin lower edge value in X.

func (*H2I) XBinWidth Uses

func (h *H2I) XBinWidth(i int) float64

XBinWidth returns the bin width in X.

func (*H2I) YAxis Uses

func (h *H2I) YAxis() Axis

YAxis returns the axis along Y.

func (*H2I) YBinCenter Uses

func (h *H2I) YBinCenter(i int) float64

YBinCenter returns the bin center value in Y.

func (*H2I) YBinContent Uses

func (h *H2I) YBinContent(i int) float64

YBinContent returns the bin content value in Y.

func (*H2I) YBinError Uses

func (h *H2I) YBinError(i int) float64

YBinError returns the bin error in Y.

func (*H2I) YBinLowEdge Uses

func (h *H2I) YBinLowEdge(i int) float64

YBinLowEdge returns the bin lower edge value in Y.

func (*H2I) YBinWidth Uses

func (h *H2I) YBinWidth(i int) float64

YBinWidth returns the bin width in Y.

Package rhist imports 12 packages (graph) and is imported by 6 packages. Updated 2019-05-17. Refresh now. Tools for package owners.