==================== Deprecated Features ==================== This document lists deprecated and removed features in LabToolbox. Removed Functions ----------------- samples() ~~~~~~~~~ .. versionremoved:: 3.0.0 The ``samples()`` function has been removed. Use ``scipy.stats`` distributions instead. **Migration:** .. code-block:: python # 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() ~~~~~~~ .. versionremoved:: 3.0.0 The ``noise()`` function has been removed. Use ``numpy.random`` instead. **Migration:** .. code-block:: python # New (recommended) import numpy as np noise = np.random.normal(0, 1, size=1000) analyze_residuals() ~~~~~~~~~~~~~~~~~~~ .. versionremoved:: 3.0.0 The ``analyze_residuals()`` function has been removed. Use ``stats.residuals()`` instead. Deprecated Functions -------------------- bootstrap_fit() ~~~~~~~~~~~~~~~ .. versionchanged:: 3.1.0 Deprecated in favor of :func:`scipy.stats.bootstrap`. **Migration:** .. code-block:: python # Old (deprecated) from labtoolbox.fit import bootstrap_fit result = bootstrap_fit(...) # New (recommended) from scipy import stats result = stats.bootstrap(...)