eva

package module
v0.0.0-...-b15e453 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 6 Imported by: 0

README

eva

Extreme Value Analysis for engineering in Go (WIP).

I'm a beginner in Go, and this code is under heavy development.

I update this repostitory as I learn the Go programing language.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blom

func Blom(i, n float64) float64

Blom is Blom's plotting position.

func FitDist

func FitDist(tx, ty *[]float64) (slope, intercept, rvalue float64)

FitDist calculate a linear least-squares regression for TransformX(x) and TransformY(y). You can use these linear parameters to compute distribution parameters.

func Gringorten

func Gringorten(i, n float64) float64

Gringorten is Gringorten's plotting position.

func Hazen

func Hazen(i, n float64) float64

Hazen is Hazen's plotting position.

func NewConstantTicks

func NewConstantTicks(n, prec int, min, max float64) plot.ConstantTicks

NewConstantTicks returns custom Ticks suitable for the Tick.Marker field of an Axis.

func NewProbPlot

func NewProbPlot(xs, pr *[]float64, w dist.Distribution) (*plot.Plot, error)

NewProbPlot returns a probability plot for the given data and Distribution.

func Weibull

func Weibull(i, n float64) float64

Weibull is Weibull's plotting position.

Types

type PlottingPosition

type PlottingPosition func(i, n float64) float64

PlottingPosition represents a plotting position where i is the ordered rank of a sample value and n is the sample size.

func GetPlottingPosition

func GetPlottingPosition(name string) PlottingPosition

GetPlottingPosition returns a PlottingPosition with given name.

type ScaleX

type ScaleX func(x float64) float64

ScaleX can be used as the value of an Axis.Scale function to set the x-axis to a custom probability scale.

func (ScaleX) Normalize

func (sx ScaleX) Normalize(min, max, x float64) float64

Normalize returns the fractional transformed distance of x between min and max.

type ScaleY

type ScaleY func(y float64) float64

ScaleY can be used as the value of an Axis.Scale function to set the y-axis to a custom probability scale.

func (ScaleY) Normalize

func (sy ScaleY) Normalize(min, max, x float64) float64

Normalize returns the fractional transformed distance of y between min and max.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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