gorbi

package module
v0.0.0-...-127e166 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: MIT Imports: 4 Imported by: 0

README


Logo

GORBI

Multi variate radial basis interpolation in golang

Build Status codecov Documentation Go Report Card

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

This library is can be used in other projects and the GO compiler and base library is the only thing you need:

https://golang.org/

Installing

There are two main ways of getting this code base, being:

Go get the repo by

go get github.com/polymerguy/gorbi

or, clone the repo directly

git clone http://www.github.com/polymerguy/gorbi.git

Running the tests

When you have pulled the code, you should run the tests by:

cd /path/to/gorbi
go test

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

Authors

  • Sindre Olufsen - Author of this repo

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • An enormeous thanks to the authors of the Scipy RBI project, from which this code is ported

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cdist

func Cdist(xa, xb [][]float64) [][]float64

func EuclideanDist

func EuclideanDist(pa, pb []float64) float64

eucleanDist calculates the euclatean distance between two points in R^n space

func HypercubeDims

func HypercubeDims(xs [][]float64) []float64

Calculates the dimensions of an hypercube which contains all points

Types

type RBF

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

Radial basis interpolator

func NewRBF

func NewRBF(args [][]float64, values []float64) (RBF, error)

Constructor for the radial basis interpolator.

func (*RBF) At

func (rbf *RBF) At(xs [][]float64) []float64

Get the interpolated value at the given coordinate

Jump to

Keyboard shortcuts

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