geom

package
v0.0.0-...-de618e6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Box3

func Box3(bb [6]float64, path []uint8) [][6]float64

func ClosestPointOnSegment

func ClosestPointOnSegment(a, b []float64, p []float64) []float64

func CommonSegment2

func CommonSegment2(a, b []float64) []float64

func Contour2

func Contour2(d int, r0, r1 [2]float64, density []float64, level float64) [][]float64

func Decode3

func Decode3(m uint64) [3]uint16

func Encode3

func Encode3(xyz [3]uint16) uint64

func GaussianCDF

func GaussianCDF(x, m, s float64) (val float64)

func GaussianPDF

func GaussianPDF(x, m, s float64) (val float64)

func KDE2

func KDE2(d int, bw [2]float64, r0, r1 [2]float64, kf KernelFunc, values []float64) []float64

func MinMax

func MinMax(arr []float64, offset, skip int, pad float64) [2]float64

func Path3

func Path3(code uint64) [16]uint8

func Points

func Points(buf []float64, width int) [][]float64

buf : [1,2] --- [3,4] --- [5,6]

= : [[1,2], [3,4], [5,6]]

func Points2

func Points2(buf []float64) [][]float64

func SegmentSegment2

func SegmentSegment2(a, b, c, d []float64) []float64

func Segments

func Segments(buf []float64, width int) [][]float64

buf : [1,2] --- [3,4] --- [5,6]

= : [[1,2,3,4], [3,4,5,6]]

func Segments2

func Segments2(buf []float64) [][]float64

func SqDistPointSegment

func SqDistPointSegment(a, b []float64, p []float64) float64

Types

type Coord3

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

func NewCoord3

func NewCoord3(aabb [6]float64) *Coord3

func (*Coord3) Decode

func (coord3 *Coord3) Decode(m uint64) [3]float64

func (*Coord3) DecodeInt

func (coord3 *Coord3) DecodeInt(m int64) [3]float64

func (*Coord3) Encode

func (coord3 *Coord3) Encode(xyz [3]float64) uint64

func (*Coord3) EncodeInt

func (coord3 *Coord3) EncodeInt(xyz [3]float64) int64

func (*Coord3) Parts

func (coord3 *Coord3) Parts(m uint64) [3]uint16

func (*Coord3) PartsInt

func (coord3 *Coord3) PartsInt(m int64) [3]int32

func (*Coord3) Path

func (coord3 *Coord3) Path(m uint64) [16]uint8

func (*Coord3) PathInt

func (coord3 *Coord3) PathInt(m uint64) [16]int8

type KernelFunc

type KernelFunc func(x, m, s float64) float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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