Package org.yamcs.studio.data.vtype
Interface Statistics
- All Known Subinterfaces:
VStatistics
- All Known Implementing Classes:
IVStatistics
public interface Statistics
Basic type for statistical information of numeric types. The methods never return null, even if no connection was
ever made. One must always look at the alarm severity to be able to correctly interpret the value.
This type can be used regardless of the method used to calculate the average (instances: Σxi/N, time: ΣxiΔti/Δt, time with linear interpolation, exponential backoff, ...).
No integer statistics, since averages are not integer in general.
-
Method Details
-
getAverage
Double getAverage()The average. Never null.- Returns:
- the average
-
getStdDev
Double getStdDev()The standard deviation. Never null.- Returns:
- the standard deviation
-
getMin
Double getMin()The minimum value.- Returns:
- the minimum
-
getMax
Double getMax()The maximum value.- Returns:
- the maximum
-
getNSamples
Integer getNSamples()The number of samples.- Returns:
- the number of samples
-