Skip to content
New issue

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

isregular() method for checking regularity of TS object #78

Closed
chiraganand opened this issue Sep 27, 2022 · 1 comment
Closed

isregular() method for checking regularity of TS object #78

chiraganand opened this issue Sep 27, 2022 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@chiraganand
Copy link
Member

chiraganand commented Sep 27, 2022

Methods

  • isregular(ts::TS)
  • isregular(ts::TS, unit::T) where {T<:Dates.Period}
  • isregular(timestamps::T) where {T<:AbstractVector{TimeType}}
  • isregular(timestamps::V, unit::T) {V<:AbstractVector{TimeType}, T<:Dates.Period}

Rules

  1. The input is considered regular if the times are in a sequence that is strictly monotone (either increasing or decreasing) with a unique time step. REF: Matlab isregular()
  2. For methods where the second argument <: TimeType is provided the input will be checked using rule 1 using the period provided.

Ref: #48

@chiraganand chiraganand added the good first issue Good for newcomers label Oct 8, 2022
@chiraganand chiraganand linked a pull request Nov 15, 2022 that will close this issue
@harsharora21 harsharora21 self-assigned this Nov 15, 2022
@chiraganand
Copy link
Member Author

This was implemented in #130.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants