TimeStatistic

scalation.mathstat.TimeStatistic
See theTimeStatistic companion class
object TimeStatistic

The TimeStatistic companion object provides additional functions.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def accumAll(x: VectorD, t: VectorD): Double

Accumulate all the values weighted by their time durations and return the sum.

Accumulate all the values weighted by their time durations and return the sum.

Value parameters

t

the vector of times of the observation (e.g, event times)

x

the vector of values to accumulate (e.g., system occupancy)

Attributes

def aggregate(subStats: ArrayBuffer[TimeStatistic], name: String): TimeStatistic

Aggregate the sub-statistics by summing all accumulators and determining new overall extreme values.

Aggregate the sub-statistics by summing all accumulators and determining new overall extreme values.

Value parameters

name

the name for the aggregated statistic

subStats

the list of sub-statistics

Attributes

def apply(n: Int, sum: Double, sumAb: Double, sumSq: Double, minX: Double, maxX: Double, name: String, _lastTime: Double, _startTime: Double): TimeStatistic

Create a statistical object and set its accumulators and extreme values.

Create a statistical object and set its accumulators and extreme values.

Value parameters

_lastTime

the time of latest observation

_startTime

the time observation began

maxX

the maximum sample value

minX

the minimum sample value

n

the number of samples

name

the name for this statistic (e.g., 'waitingTime')

sum

sum of the sample values

sumAb

sum of the sample absolute values

sumSq

sum of the sample values squared

Attributes