Removed Functions#
Legacy Statistical Functions#
samples()#
Removed in version 3.1.0: The samples() function has been removed. Use scipy.stats distributions instead.
Migration:
# Old (removed)
from labtoolbox.stats import samples
data = samples(1000, 'normal', mu=0, sigma=1)
# New (recommended)
from scipy import stats
data = stats.norm.rvs(loc=0, scale=1, size=1000)
noise()#
Removed in version 3.1.0: The noise() function has been removed. Use numpy.random instead.
Migration:
# New (recommended)
import numpy as np
noise = np.random.normal(0, 1, size=1000)
analyze_residuals()#
Removed in version 3.1.0: The analyze_residuals() function has been removed. Use stats.residuals() instead.
remove_outliers()#
Removed in version 3.1.0: The remove_outliers() function has been removed from labtoolbox.stats.
Legacy Fitting Functions#
bootstrap_fit()#
Changed in version 3.1.0: Deprecated in favor of scipy.stats.bootstrap().
Migration:
# Old (deprecated)
from labtoolbox.fit import bootstrap_fit
result = bootstrap_fit(...)
# New (recommended)
from scipy import stats
result = stats.bootstrap(...)
Removed Signal Functions#
dfs()#
Removed in version 3.1.0: The dfs() function has been removed from labtoolbox.signals.
harmonic()#
Removed in version 3.1.0: The harmonic() function has been removed from labtoolbox.signals.
decompose()#
Removed in version 3.1.0: The decompose() function has been removed from labtoolbox.signals.