gmath

package
v0.0.0-...-4f40efb Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

math code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Db

func Db(v float64) float64

func Idb

func Idb(v float64) float64

func LogRange

func LogRange(min, max float64, n int) (out []float64)

Types

type Function

type Function interface {
	Domain() (float64, float64)
	Range() (float64, float64)
	Eval(float64) float64
}

func Add

func Add(a, b Function, samples int) Function

type InterpolationBuilder

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

func NewInterpolationBuilder

func NewInterpolationBuilder() *InterpolationBuilder

func (*InterpolationBuilder) Init

func (f *InterpolationBuilder) Init() Function

func (*InterpolationBuilder) Len

func (f *InterpolationBuilder) Len() int

func (*InterpolationBuilder) Less

func (f *InterpolationBuilder) Less(i, j int) bool

func (*InterpolationBuilder) Set

func (f *InterpolationBuilder) Set(x, y float64)

func (*InterpolationBuilder) Swap

func (f *InterpolationBuilder) Swap(i, j int)

type InterpolationI

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

func (*InterpolationI) Domain

func (f *InterpolationI) Domain() (float64, float64)

func (*InterpolationI) Eval

func (f *InterpolationI) Eval(x float64) float64

func (*InterpolationI) Range

func (f *InterpolationI) Range() (float64, float64)

type ScaledFunction

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

func NewScaledFunction

func NewScaledFunction(scale float64, f Function) *ScaledFunction

func (*ScaledFunction) Domain

func (s *ScaledFunction) Domain() (float64, float64)

func (*ScaledFunction) Eval

func (s *ScaledFunction) Eval(x float64) float64

func (*ScaledFunction) Range

func (s *ScaledFunction) Range() (float64, float64)

type Tool

type Tool struct {
}

func (*Tool) Description

func (*Tool) Description() string

func (*Tool) Name

func (*Tool) Name() string

func (*Tool) Run

func (*Tool) Run(args []string)

play with math stuff

Directories

Path Synopsis
interface to Basic Linear Algebra Subprograms (blas).
interface to Basic Linear Algebra Subprograms (blas).
linear algebra routines.
linear algebra routines.
interface to Linear Algebra PACKage (lapack).
interface to Linear Algebra PACKage (lapack).
modelling routines.
modelling routines.
cancer
use modelling code on well-known prostate cancer data, check we get same results.
use modelling code on well-known prostate cancer data, check we get same results.
logistic
logistic modelling example.
logistic modelling example.
various statistical routines.
various statistical routines.

Jump to

Keyboard shortcuts

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