def bw_scott(x, kernel=None):
 A = _select_sigma(x)
 n = len(x)
 return ((1.059 * A) * (n ** (-0.2)))

def bw_scott ( x , kernel = None ) : A = _select_sigma ( x ) n = len ( x ) return ( ( 1.059 * A ) * ( n ** ( - 0.2 ) ) )
scotts rule of thumb parameters x : array-like array for which to get the bandwidth kernel : customkernel object unused returns bw : float the estimate of the bandwidth notes returns 1 .