Documentation ¶
Index ¶
- func CalculateWeight(cell Point, data *[]Point, exp float64) float64
- func ChangeExtension(filename string, ext string) string
- func ChannelSize(appxSubprocess uint64, appxOverhead uint64) int
- func DistExp(p0, p Point, exp float64) float64
- func GetChunkBlock(row, chunkR, chunkC int, xInfo Info, yInfo Info) (int, int)
- func GetDimensions(xInfo Info, yInfo Info) (int, int)
- func MakeCoordSpace(listPoints *[]Point, xInfo Info, yInfo Info) map[OrderedPair]Point
- func Max(a, b int) int
- func Min(a, b int) int
- func PairToRC(pair OrderedPair) (int, int)
- func PartialWeight(p0, p Point, exp float64) float64
- func RoundUp(num, denom int) int
- func SameFiles(f1, f2 string) (bool, error)
- func SetLogging()
- func Transpose(a [][]float64) [][]float64
- type Coord
- type Info
- type OrderedPair
- type Point
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeExtension ¶
func ChannelSize ¶
Memory Management
func MakeCoordSpace ¶
func MakeCoordSpace(listPoints *[]Point, xInfo Info, yInfo Info) map[OrderedPair]Point
func PairToRC ¶
func PairToRC(pair OrderedPair) (int, int)
func PartialWeight ¶
p0 is grid location, p is weighted point to compare to
func SetLogging ¶
func SetLogging()
Types ¶
type Coord ¶
type Coord struct { P Point Pair OrderedPair }
type Info ¶
type Info struct { Min float64 `default:"math.Inf(1)"` Max float64 `default:"math.Inf(-1)"` Step float64 `default:"1.0"` }
Info Structure For Conversions to and from Euclidean Space
type OrderedPair ¶
func MakePair ¶
func MakePair(r int, c int) OrderedPair
func PointToPair ¶
func PointToPair(p Point, xInfo Info, yInfo Info) OrderedPair
func RCToPair ¶
func RCToPair(r, c int) OrderedPair
type Point ¶
Start Point/OrderedPair/Coord and helper functions
func PairToPoint ¶
func PairToPoint(pair OrderedPair, xInfo Info, yInfo Info) Point
Click to show internal directories.
Click to hide internal directories.