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

IMF transformation breaks with small inputs #181

Open
philerooski opened this issue Feb 7, 2019 · 1 comment
Open

IMF transformation breaks with small inputs #181

philerooski opened this issue Feb 7, 2019 · 1 comment
Assignees

Comments

@philerooski
Copy link
Collaborator

From @itismeghasyam:

# Data that is DISMAL < i.e say ~10 samples)
miniAccel <- mhealthtools::accelerometer_data %>% 
  dplyr::filter(t < 0.1)
miniGyro <- mhealthtools::gyroscope_data %>% 
  dplyr::filter(t < 0.1)

# This should also be an empty feature list, with an error, but
# throws a different error than before and does not execute.
# The issue here is from the IMF parameter, if that is removed
# no problems, runs smoothly
tremorFeatures <- mhealthtools::get_tremor_features(
  accelerometer_data = miniAccel,
  gyroscope_data = miniGyro,
  IMF = 2)

A simplified example:

accelerometer_data %>%
    mhealthtools:::tidy_sensor_data() %>%
    dplyr::filter(t < 0.1) %>%
    mhealthtools:::transformation_imf_window(window_length = 256,
                                             window_overlap = 0.5,
                                             max_imf = 2)()
@philerooski philerooski self-assigned this Feb 7, 2019
@philerooski
Copy link
Collaborator Author

See #180 (Error 4)

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

No branches or pull requests

1 participant