We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def drop_outlier(array,count,bins): index = [] range_ = np.arange(1,count,bins) for i in range_[:-1]: array_lim = array[i:i+bins] sigma = np.std(array_lim) mean = np.mean(array_lim) th_max,th_min = mean + sigma2, mean - sigma2 idx = np.where((array_lim < th_max) & (array_lim > th_min)) idx = idx[0] + i index.extend(list(idx)) return np.array(index)。这段代码中为啥range_ = np.arange(1,count,bins)这行代码从1开始,而不是从0开始
The text was updated successfully, but these errors were encountered:
No branches or pull requests
def drop_outlier(array,count,bins):
index = []
range_ = np.arange(1,count,bins)
for i in range_[:-1]:
array_lim = array[i:i+bins]
sigma = np.std(array_lim)
mean = np.mean(array_lim)
th_max,th_min = mean + sigma2, mean - sigma2
idx = np.where((array_lim < th_max) & (array_lim > th_min))
idx = idx[0] + i
index.extend(list(idx))
return np.array(index)。这段代码中为啥range_ = np.arange(1,count,bins)这行代码从1开始,而不是从0开始
The text was updated successfully, but these errors were encountered: