Home > data-analysis > stats > cont > cont_above.m

cont_above

PURPOSE ^

cont_above Return the proportion of time when data value > threshold

SYNOPSIS ^

function prop = cont_above(var_data, threshold)

DESCRIPTION ^

 cont_above  Return the proportion of time when data value > threshold     
  USAGE:
    prop = cont_above(var_data, threshold)

    Example: 
    prop = cont_above(cont_data, 80);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function prop = cont_above(var_data, threshold)
0002 % cont_above  Return the proportion of time when data value > threshold
0003 %  USAGE:
0004 %    prop = cont_above(var_data, threshold)
0005 %
0006 %    Example:
0007 %    prop = cont_above(cont_data, 80);
0008 %
0009 
0010 prop = sum(var_data(:, 2:end) > threshold) / size(var_data, 1);
0011

Generated on Tue 23-May-2017 03:00:58 by m2html © 2005