# Waves: Signal Statistics

## Stats -> # Data Points

The # Data Points function calculates the number of data points for every selected signal in the highlighted area between the two cursors. If only one cursor is present, the total number of data points for the selected signals is displayed.

## Stats -> Signal Stats

The Signal Stats function computes basic statistics for a selected signal based on just the data values in that signal. Time is**considered in the statistics generated by the Signal Stats function. For example, if a signal has a value of 60 for 59 seconds and 0 for 1 second, its average value is simply 30 as time has no effect on the calculation.**

*not*If the signal is drawn as a spark line (i.e. the signal contains all numerical values), Stats -> Signal Stats will generate a distribution (histogram) chart as well as the max, average, and minimum values for just the data highlighted between the two cursors. If only one cursor is present, the statistics are generated for the selected signal's entire data set.

If the signal is drawn as anything other than a spark line (i.e. the signal contains non-numerical values), Stats -> Signal Stats will generate a pie chart containing the count of each unique value type contained in the region highlighted between the two cursors. If only one cursor is present, the statistics are generated for the selected signal's entire data set.

If multiple signals are selected (using CTRL/CMD or SHIFT to select multiples), Stats -> Signal Stats will generate a stacked bar chart comparing the total value count for each unique value in each signal for the region highlighted between the two cursors (or the entire data set if only one cursor is present). This is only a useful graph if there is a relatively small number of unique data points in each signal.

## Stats -> Signal Stats Over Time

The Signal Stats Over Time function is similar in functionality to the Signal Stats function but takes into account time in all calculations. For example, if a signal has a value of 60 for 59 seconds and 0 for 1 second, its average value over time is 59. Instead of displaying total data point counts, the Signal Stats Over Time function will display total time for each unique data point.## Stats -> Time Between Values

The Time Between Values function creates a new signal that contains the time measurement between data points for a selected signal. Only the data points in the highlighted region between two cursors are used for this calculation. If only one cursor is present, all data points for the selected signal are used. The newly created signal will contain numerical values in the same unit as selected in the Units menu. The signal name will contain the time unit used (e.g. Time(hour)). The newly created signal can have statistics generated on it like any other signal. This allows you to compute the average time between data points by running the Stats -> Signal Stats function on the created signal.