Documentation ¶
Index ¶
- type Coordinates
- type PVertex
- type ReachabilityVector
- type Starmap
- func (sm *Starmap) AppendToPath(pathIdx, idx int) error
- func (sm *Starmap) BuildReachabilityMap(idx int, isStartingNode bool)
- func (sm *Starmap) CalculateNeighbors(mydist float64) error
- func (sm *Starmap) MainBuildReachabilityMap(idx int, isStartingNode bool)
- func (s *Starmap) SetDistanceToVector(rv *ReachabilityVector, dist float64)
- func (s *Starmap) UpdateReachabilityVectorDistance(i int) error
- type Vertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinates ¶
func (*Coordinates) DistanceFrom ¶
func (c *Coordinates) DistanceFrom(c1 *Coordinates) float64
type ReachabilityVector ¶
func (*ReachabilityVector) GetPositionInPath ¶
func (v *ReachabilityVector) GetPositionInPath(indexToCheck int) int
func (*ReachabilityVector) SubstituteSubVector ¶
func (v *ReachabilityVector) SubstituteSubVector(subvect []int) error
type Starmap ¶
type Starmap struct { Name string Stars []*Vertex IdStarMap map[int]*Vertex Reachability map[int]*ReachabilityVector IdIndexMap map[int]int // contains filtered or unexported fields }
func StarmapFromFile ¶
func (*Starmap) AppendToPath ¶
func (*Starmap) BuildReachabilityMap ¶
func (*Starmap) CalculateNeighbors ¶
func (*Starmap) MainBuildReachabilityMap ¶
func (*Starmap) SetDistanceToVector ¶
func (s *Starmap) SetDistanceToVector(rv *ReachabilityVector, dist float64)
func (*Starmap) UpdateReachabilityVectorDistance ¶
type Vertex ¶
type Vertex struct { Coordinates Id int Name string Neighbors []PVertex NeighborsIdx []int Visited bool Reference bool Distance float64 }
func MakeVertex ¶
func MakeVertex(newName string, newCoord Coordinates) Vertex
func VertexFromString ¶
func (*Vertex) AddNeighbor ¶
Click to show internal directories.
Click to hide internal directories.