sbd

package
v0.0.0-...-715a0bc Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 1 Imported by: 0

README

SBD

Documentation

Index

Constants

View Source
const (
	N  uint64  = 50
	M  uint64  = 50
	PV float64 = 0.7 // p_v
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FreqEst

type FreqEst struct {
	// contains filtered or unexported fields
}

func (*FreqEst) GetFreqEst

func (fe *FreqEst) GetFreqEst() float64

func (*FreqEst) SetMean

func (fe *FreqEst) SetMean(freqEst float64)

type Losses

type Losses struct {
	// contains filtered or unexported fields
}

type MeanDelay

type MeanDelay struct {
	// contains filtered or unexported fields
}

func (*MeanDelay) GetMeanDelay

func (meanDelay *MeanDelay) GetMeanDelay() float64

type MeanOWD

type MeanOWD struct {
	// contains filtered or unexported fields
}

func (*MeanOWD) GetMeanOwd

func (meanOwd *MeanOWD) GetMeanOwd() float64

type PacketLoss

type PacketLoss struct {
	Losses
	// contains filtered or unexported fields
}

func (*PacketLoss) GetPacketLoss

func (pl *PacketLoss) GetPacketLoss() float64

func (*PacketLoss) SetMean

func (pl *PacketLoss) SetMean(packetLoss float64)

type PathStats

type PathStats struct {
	Skewness  SkewEst
	Variance  VarEst
	Freq      FreqEst
	Loss      PacketLoss
	MeanOwd   MeanOWD
	MeanDelay MeanDelay
	PB        bool
}

func NewPathStats

func NewPathStats(skewness SkewEst, variance VarEst, loss PacketLoss, freq FreqEst, meanOwd MeanOWD, meanDelay MeanDelay) *PathStats

newPathStats gets a new path statistics

func (*PathStats) ComputePacketLoss

func (pstats *PathStats) ComputePacketLoss(lossCount uint64)

func (*PathStats) ComputeStatistics

func (pstats *PathStats) ComputeStatistics(firstTInterval uint64)

func (*PathStats) ComputeStatisticsBase

func (pstats *PathStats) ComputeStatisticsBase(relativeOwd float64, firstTInterval uint64)

func (*PathStats) Restart

func (pstats *PathStats) Restart()

type SkewBase

type SkewBase struct {
	// contains filtered or unexported fields
}

type SkewEst

type SkewEst struct {
	SkewBase
	// contains filtered or unexported fields
}

func (*SkewEst) GetSkewBaseT

func (se *SkewEst) GetSkewBaseT() int64

func (*SkewEst) GetSkewEst

func (se *SkewEst) GetSkewEst() float64

func (*SkewEst) SetMean

func (se *SkewEst) SetMean(skewEst float64)

type VarBase

type VarBase struct {
	// contains filtered or unexported fields
}

type VarEst

type VarEst struct {

	// n           uint64
	VarBase
	// contains filtered or unexported fields
}

func (*VarEst) GetVarBaseT

func (ve *VarEst) GetVarBaseT() float64

func (*VarEst) GetVarEst

func (ve *VarEst) GetVarEst() float64

func (*VarEst) SetMean

func (ve *VarEst) SetMean(meanVarEst float64)

gambi

Jump to

Keyboard shortcuts

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