def _compute_min_std_IQR(data):
 s1 = np.std(data, axis=0)
 q75 = mquantiles(data, 0.75, axis=0).data[0]
 q25 = mquantiles(data, 0.25, axis=0).data[0]
 s2 = ((q75 - q25) / 1.349)
 dispersion = np.minimum(s1, s2)
 return dispersion

def _compute_min_std_IQR ( data ) : s1 = np . std ( data , axis = 0 ) q75 = mquantiles ( data , 0.75 , axis = 0 ) . data [ 0 ] q25 = mquantiles ( data , 0.25 , axis = 0 ) . data [ 0 ] s2 = ( ( q75 - q25 ) / 1.349 ) dispersion = np . minimum ( s1 , s2 ) return dispersion
compute minimum of std and iqr for each variable .