stlplus-rs 0.1.3

Port of the enhanced Seasonal Trend Decomposition using Loess (STL) implementation to rust
Documentation
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("empty input slice given")]
    EmptyInputSlice,

    #[error("input slice of differing length")]
    InputSlicesDifferingLength,

    #[error("input slice contains invalid values")]
    InputSliceInvalidValues,

    #[error("Invalid degree - must be 1, 2 or 3")]
    InvalidDegree,

    #[error("Invalid window - must be > 0")]
    InvalidWindow,

    #[error("length of sub_labels must match num_obs_per_period")]
    InvalidSubLabelsLength,

    #[error("sub_labels must be unique")]
    SubLabelsMustBeUnique,

    #[error("num_obs_per_period is invalid")]
    InvalidNumObsPerPeriod,
    // InvalidNumberOfDataPoints,
    #[error("unexpected 0 encountered")]
    UnexpectedZero,

    #[error("input slice contains to few observations - must be more than two periods")]
    InputSliceToFewObs,
}