Documentation ¶
Index ¶
- Constants
- Variables
- func AnnularPoint(centre complex128, innerRadius, outerRadius float64) complex128
- func AnnularRingEqPoints(centre complex128, outerRadius float64, N int) vlib.VectorC
- func AnnularRingPoints(centre complex128, innerRadius, outerRadius float64, N int) vlib.VectorC
- func CircularPoints(centre complex128, radius float64, N int) vlib.VectorC
- func HexGrid(N int, center vlib.Location3D, hexsize float64, RDEGREE float64) []vlib.Location3D
- func HexRandU(centre complex128, hexRadius float64, Npoints int, rdegree float64) vlib.VectorC
- func HexVertices(centre complex128, length float64, degree float64) vlib.VectorC
- func NewDropSetting() *dDropSetting
- func RandPoint(centre complex128, radius float64) complex128
- func RandPointR(size float64) complex128
- func RectangularEqPoints(centre complex128, length, angle float64, N int) vlib.VectorC
- func RectangularNPoints(centre complex128, width, height, angleInDegree float64, N int) vlib.VectorC
- func RectangularPoint(centre complex128, width, height, angleInDegree float64) complex128
- type Area
- type DropParameter
- type DropSystem
- func (d DropSystem) AddNodeType(ntype NodeType)
- func (d *DropSystem) Drop(dp *DropParameter, result *vlib.VectorC) error
- func (d *DropSystem) DropNodeType(nodetype string) error
- func (d *DropSystem) GetNodeIDs(ntype string) vlib.VectorI
- func (d DropSystem) GetNodeIndex(ntype string) int
- func (d *DropSystem) GetNodeType(ntype string) *NodeType
- func (d DropSystem) GetRxNodeNames() []string
- func (d DropSystem) GetSetting() *dDropSetting
- func (d DropSystem) GetTxNodeNames() []string
- func (d *DropSystem) Init()
- func (d *DropSystem) Locations(ntype string) vlib.VectorC
- func (d *DropSystem) Locations3D(ntype string) []vlib.Location3D
- func (d *DropSystem) MarshalJSON() ([]byte, error)
- func (d *DropSystem) NewNode(ntype string) *Node
- func (d DropSystem) NodeCount(ntype string) int
- func (d *DropSystem) PopulateHeight(ntype string)
- func (d *DropSystem) SetAllNodeLocation(ntype string, locations vlib.VectorC)
- func (d *DropSystem) SetAllNodeProperty(ntype, property string, data interface{})
- func (d DropSystem) SetCoverage(area Area)
- func (d DropSystem) SetDefaults()
- func (d DropSystem) SetNodeCount(ntype string, count int)
- func (d *DropSystem) SetNodeLocation(ntype string, nid int, location complex128)
- func (d *DropSystem) SetNodeLocationOf(ntype string, nodeIDs vlib.VectorI, locations vlib.VectorC)
- func (d DropSystem) SetRxNodeNames(names ...string)
- func (d *DropSystem) SetSetting(setting *dDropSetting)
- func (d DropSystem) SetTxNodeNames(names ...string)
- func (d *DropSystem) UnmarshalJSON(jsondata []byte) error
- type DropType
- type Node
- type NodeType
- type TxRxMode
Constants ¶
View Source
const ( ORIGIN = complex(0, 0) FcInGHz = 2.1 /// Default carrier frequency )
Variables ¶
View Source
var DropTypes = [...]string{
"Circular",
"Hexagonal",
"Rectangular",
"Annular",
}
View Source
var TxRxModes = [...]string{
"TransmitOnly",
"ReceiveOnly",
"Duplex",
"Inactive",
}
Functions ¶
func AnnularPoint ¶
func AnnularPoint(centre complex128, innerRadius, outerRadius float64) complex128
func AnnularRingEqPoints ¶
func AnnularRingEqPoints(centre complex128, outerRadius float64, N int) vlib.VectorC
func AnnularRingPoints ¶
func AnnularRingPoints(centre complex128, innerRadius, outerRadius float64, N int) vlib.VectorC
func CircularPoints ¶
func CircularPoints(centre complex128, radius float64, N int) vlib.VectorC
func HexGrid ¶
func HexGrid(N int, center vlib.Location3D, hexsize float64, RDEGREE float64) []vlib.Location3D
HexGrid generates a grid of N Hexgons centred at `center` of size hexsize, returns an array of 3D locations of the centres of the hexgonals, This centers can be used to place the base-stations for Multi-cell simulations. The function automatically adds more hexgonal out
func HexRandU ¶
% In the code, I will create a hexagon centered at (0,0) with radius R. % The snipplets can be used in mobile capacity predicts and general % systems level simulation of cellular networks.
func HexVertices ¶
func HexVertices(centre complex128, length float64, degree float64) vlib.VectorC
func NewDropSetting ¶
func NewDropSetting() *dDropSetting
func RandPoint ¶
func RandPoint(centre complex128, radius float64) complex128
func RandPointR ¶
func RandPointR(size float64) complex128
/ Simplest point for origin centred, rectangular region of length size
func RectangularEqPoints ¶
func RectangularEqPoints(centre complex128, length, angle float64, N int) vlib.VectorC
func RectangularNPoints ¶
func RectangularNPoints(centre complex128, width, height, angleInDegree float64, N int) vlib.VectorC
func RectangularPoint ¶
func RectangularPoint(centre complex128, width, height, angleInDegree float64) complex128
Types ¶
type DropParameter ¶
type DropParameter struct { Centre complex128 Type DropType Randomnoss bool // if true, uniformly distributed else equallyspaced in region //Radius in meters Radius float64 `json:"radius"` InnerRadius float64 /// Angles are in degree RotationDegree float64 InnerRotationDegree float64 // Number of Drops NCount int }
func (DropParameter) MarshalJSON ¶
func (d DropParameter) MarshalJSON() ([]byte, error)
type DropSystem ¶
func (DropSystem) AddNodeType ¶
func (d DropSystem) AddNodeType(ntype NodeType)
func (*DropSystem) Drop ¶
func (d *DropSystem) Drop(dp *DropParameter, result *vlib.VectorC) error
func (*DropSystem) DropNodeType ¶
func (d *DropSystem) DropNodeType(nodetype string) error
func (*DropSystem) GetNodeIDs ¶
func (d *DropSystem) GetNodeIDs(ntype string) vlib.VectorI
func (DropSystem) GetNodeIndex ¶
func (*DropSystem) GetNodeType ¶
func (d *DropSystem) GetNodeType(ntype string) *NodeType
func (DropSystem) GetRxNodeNames ¶
func (d DropSystem) GetRxNodeNames() []string
func (DropSystem) GetSetting ¶
func (d DropSystem) GetSetting() *dDropSetting
func (DropSystem) GetTxNodeNames ¶
func (d DropSystem) GetTxNodeNames() []string
func (*DropSystem) Init ¶
func (d *DropSystem) Init()
func (*DropSystem) Locations3D ¶
func (d *DropSystem) Locations3D(ntype string) []vlib.Location3D
func (*DropSystem) MarshalJSON ¶
func (d *DropSystem) MarshalJSON() ([]byte, error)
func (*DropSystem) NewNode ¶
func (d *DropSystem) NewNode(ntype string) *Node
func (*DropSystem) PopulateHeight ¶
func (d *DropSystem) PopulateHeight(ntype string)
func (*DropSystem) SetAllNodeLocation ¶
func (d *DropSystem) SetAllNodeLocation(ntype string, locations vlib.VectorC)
func (*DropSystem) SetAllNodeProperty ¶
func (d *DropSystem) SetAllNodeProperty(ntype, property string, data interface{})
func (DropSystem) SetCoverage ¶
func (d DropSystem) SetCoverage(area Area)
func (DropSystem) SetDefaults ¶
func (d DropSystem) SetDefaults()
func (DropSystem) SetNodeCount ¶
func (*DropSystem) SetNodeLocation ¶
func (d *DropSystem) SetNodeLocation(ntype string, nid int, location complex128)
func (*DropSystem) SetNodeLocationOf ¶
func (DropSystem) SetRxNodeNames ¶
func (d DropSystem) SetRxNodeNames(names ...string)
func (*DropSystem) SetSetting ¶
func (d *DropSystem) SetSetting(setting *dDropSetting)
func (DropSystem) SetTxNodeNames ¶
func (d DropSystem) SetTxNodeNames(names ...string)
func (*DropSystem) UnmarshalJSON ¶
func (d *DropSystem) UnmarshalJSON(jsondata []byte) error
Click to show internal directories.
Click to hide internal directories.