org.epics.pvmanager.data
Interface Statistics

Type Parameters:
T - a Number type
All Known Subinterfaces:
VStatistics

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.

Author:
carcassi

Method Summary
 java.lang.Double getAverage()
          The average.
 java.lang.Double getMax()
          The maximum value
 java.lang.Double getMin()
          The minimum value.
 java.lang.Integer getNSamples()
           
 java.lang.Double getStdDev()
          The standard deviation.
 

Method Detail

getAverage

java.lang.Double getAverage()
The average. Never null.

Returns:
the average

getStdDev

java.lang.Double getStdDev()
The standard deviation. Never null.

Returns:
the standard deviation

getMin

java.lang.Double getMin()
The minimum value.

Returns:
the minimum

getMax

java.lang.Double getMax()
The maximum value

Returns:
the maximum

getNSamples

java.lang.Integer getNSamples()


Copyright © 2010. All Rights Reserved.