pathloss

package
v0.0.0-...-c1c2666 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2015 License: Apache-2.0, LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Implements a simple phase delay from different n-Antenna elements

Index

Constants

This section is empty.

Variables

View Source
var PathLossTypes = [...]string{
	"Exponential",
	"FreeSpace",
}

Functions

func Distance

func Distance(src, dest complex128) float64

func Distance3D

func Distance3D(src, dest vlib.VectorF) float64

Types

type ModelSetting

type ModelSetting struct {
	Type           PathLossType
	FreqHz         float64
	CutOffDistance float64
	Param          []float64 /// Factors relatedto

	AddShadowLoss bool
	// contains filtered or unexported fields
}

func NewModelSetting

func NewModelSetting() *ModelSetting

func (*ModelSetting) Init

func (m *ModelSetting) Init()

func (*ModelSetting) Set

func (s *ModelSetting) Set(str string)

func (*ModelSetting) SetDefault

func (m *ModelSetting) SetDefault()

type PathLossModel

type PathLossModel struct {
	ModelSetting
}

func (*PathLossModel) AllLossInDbBetween

func (p *PathLossModel) AllLossInDbBetween(src complex128, dest vlib.VectorC) vlib.VectorF

func (*PathLossModel) AllLossInDbBetween3D

func (p *PathLossModel) AllLossInDbBetween3D(src vlib.VectorF, dest []vlib.VectorF) vlib.VectorF

func (*PathLossModel) LossInDb

func (p *PathLossModel) LossInDb(distance float64) float64

func (*PathLossModel) LossInDbBetween

func (p *PathLossModel) LossInDbBetween(src, dest complex128) float64

func (*PathLossModel) LossInDbBetween3D

func (p *PathLossModel) LossInDbBetween3D(src, dest vlib.Location3D) float64

type PathLossType

type PathLossType int
const (
	Exponential PathLossType = iota
	FreeSpace
)

func (PathLossType) String

func (p PathLossType) String() string

Jump to

Keyboard shortcuts

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