Documentation
¶
Index ¶
- type Coordinate
- type Grid
- func (g *Grid) CountNoBeaconInRow(row int, p Projector) int
- func (g *Grid) CountSlots(intervals []Interval) int
- func (g *Grid) FindTuningFrequency(max int, p Projector) int
- func (g *Grid) ManhattanDistance(c1, c2 Coordinate) int
- func (g *Grid) MergeIntervals(orig []Interval) []Interval
- func (g *Grid) ProjectInRow(sensor Sensor, row int) *Interval
- func (g *Grid) ProjectInRowLimited(sensor Sensor, row, max int) *Interval
- type Interval
- type Item
- type LimitedProjector
- type Projector
- type SensonBeaconPair
- type Sensor
- type SimpleProjector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinate ¶
type Grid ¶
type Grid struct {
// contains filtered or unexported fields
}
func New ¶
func New(pairs []SensonBeaconPair) *Grid
func (*Grid) CountSlots ¶
func (*Grid) ManhattanDistance ¶
func (g *Grid) ManhattanDistance(c1, c2 Coordinate) int
func (*Grid) MergeIntervals ¶
type LimitedProjector ¶
type LimitedProjector struct {
// contains filtered or unexported fields
}
func NewLimitedProjector ¶
func NewLimitedProjector(max int) LimitedProjector
func (LimitedProjector) ProjectInRow ¶
func (p LimitedProjector) ProjectInRow(sensor Sensor, row int) *Interval
type SensonBeaconPair ¶
type SensonBeaconPair struct { Sensor Coordinate Beacon Coordinate }
type Sensor ¶
type Sensor struct { Position Coordinate ClosestBeacon Coordinate Distance int }
type SimpleProjector ¶
type SimpleProjector struct{}
func NewSimpleProjector ¶
func NewSimpleProjector() SimpleProjector
func (SimpleProjector) ProjectInRow ¶
func (p SimpleProjector) ProjectInRow(sensor Sensor, row int) *Interval
Click to show internal directories.
Click to hide internal directories.