kdrange

package
v0.0.0-...-70830f8 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Overview

Package kdrange contains k-dimensional range struct and helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range [][2]float64

Range represents a range in k-dimensional space.

func New

func New(limits ...float64) Range

New creates a new Range.

It accepts a sequence of min/max pairs that define the Range. For example a 2-dimensional rectangle with the with 2 and height 3, starting at (1,2):

r := NewRange(1, 3, 2, 5)

I.e.:

x (dim 0): 1 <= x <= 3
y (dim 1): 2 <= y <= 5

Jump to

Keyboard shortcuts

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