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

cont_below

PURPOSE ^

cont_below Return the proportion of time when data value < threshold

SYNOPSIS ^

function prop = cont_below(var_data, threshold)

DESCRIPTION ^

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

    Example: 
    prop = cont_below(cont_data, 80);

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Tue 23-May-2017 02:00:59 by m2html © 2005