komanawa.kendall_stats.example_data#
created matt_dumont on: 21/09/23
Functions#
|
make increasing and decreasing test data |
|
note the slope is multiplied by -1 to retain the same standards make_sharp_change_data positive slope is increasing and then decreasing, negative is opposite |
|
sharp v change positive slope is increasing and then decreasing, negative is opposite |
|
make seasonal test data |
|
make seasonal test data |
|
make seasonal test data |
Module Contents#
- make_increasing_decreasing_data(slope=1, noise=1, step=1)[source]#
make increasing and decreasing test data
- Parameters:
slope – slope for line
noise – random noise to add to data
step – spacing of data
- Returns:
x,y (np.arrays)
- make_multipart_parabolic_data(slope, noise, unsort, na_data, step=1)[source]#
note the slope is multiplied by -1 to retain the same standards make_sharp_change_data positive slope is increasing and then decreasing, negative is opposite
- Parameters:
slope – slope for line
noise – noise to add to data
unsort – make the data unsorted (for testing purposes)
na_data – add some na data to the data (for testing purposes)
- Returns:
x,y (np.arrays)
- make_multipart_sharp_change_data(slope, noise, unsort, na_data, step=1)[source]#
sharp v change positive slope is increasing and then decreasing, negative is opposite
- Parameters:
slope – slope for line
noise – noise to add to data
unsort – make the data unsorted (for testing purposes)
na_data – add some na data to the data (for testing purposes)
- Returns:
x,y (np.arrays)
- make_seasonal_data(slope, noise, unsort, na_data, step=1)[source]#
make seasonal test data
- Parameters:
slope – slope for line
noise – noise to add to data
unsort – make the data unsorted (for testing purposes)
na_data – add some na data to the data (for testing purposes)
step – spacing of data
- Returns:
pd.DataFrame
- make_seasonal_multipart_parabolic(slope, noise, unsort, na_data, step=1)[source]#
make seasonal test data
- Parameters:
slope – slope for parabola note the slope is multiplied by -1 to retain the same standards make_sharp_change_data
noise – noise to add to data
unsort – make the data unsorted (for testing purposes)
na_data – add some na data to the data (for testing purposes)
step – spacing of data
- Returns:
pd.DataFrame
- make_seasonal_multipart_sharp_change(slope, noise, unsort, na_data, step=1)[source]#
make seasonal test data
- Parameters:
slope – slope for line
noise – noise to add to data
unsort – make the data unsorted (for testing purposes)
na_data – add some na data to the data (for testing purposes)
step – spacing of data
- Returns:
pd.DataFrame