{"id":21903927,"url":"https://github.com/hansemannn/ios-coremotion-fft","last_synced_at":"2025-08-02T21:10:30.724Z","repository":{"id":142791122,"uuid":"100378383","full_name":"hansemannn/ios-coremotion-fft","owner":"hansemannn","description":"Calculate FFT values based on iOS CoreMotion accelerometer data","archived":false,"fork":false,"pushed_at":"2017-08-22T08:44:20.000Z","size":51,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-18T11:51:33.709Z","etag":null,"topics":["accelerate-framework","coremotion","fft","ios"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansemannn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-15T13:08:10.000Z","updated_at":"2017-08-22T04:15:22.000Z","dependencies_parsed_at":"2023-04-11T17:33:01.216Z","dependency_job_id":null,"html_url":"https://github.com/hansemannn/ios-coremotion-fft","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansemannn/ios-coremotion-fft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fios-coremotion-fft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fios-coremotion-fft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fios-coremotion-fft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fios-coremotion-fft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansemannn","download_url":"https://codeload.github.com/hansemannn/ios-coremotion-fft/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Fios-coremotion-fft/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268454657,"owners_count":24253159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accelerate-framework","coremotion","fft","ios"],"created_at":"2024-11-28T15:30:16.033Z","updated_at":"2025-08-02T21:10:30.692Z","avatar_url":"https://github.com/hansemannn.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOS CoreMotion FFT\nCalculate FFT values based on iOS CoreMotion accelerometer data.\n\n## Credits\nHuge shout-out to [this StackOverflow](https://stackoverflow.com/questions/32840282/how-to-get-correct-mean-values-after-applying-fourier-transform-on-accelerometer/32843293) which provided the core-algorithm used to calculate FFT values.\n\n## Usage\nThis is an example project containing the `FFTCalculator` library I wrote to wrap the FFT-functionality.\nHere is an example usage (Obj-C):\n```objc\n#import \"FFTCalculator.h\"\n\n- (void)viewDidLoad {\n  [super viewDidLoad];\n\n  // Initialize calculator with frame size\n  FFTCalculator *fftCalculator = [[FFTCalculator alloc] initWithFrameSize:256];\n  \n  // Check if the CoreMotion sensor is available (= FFTCalculator is supported)\n  if (![fftCalculator isSupported]) {\n    NSLog(@\"Error: FFTCalculator not supported due to device restrictions\");\n    NSLog(\"@Please run this project on the device to use the CoreMotion sensor.\");\n    return;\n  }\n  \n  // Start updates\n  [fftCalculator startUpdatesWithCalculationHandler:^(NSArray\u003cNSNumber *\u003e * _Nullable values, float mean, NSError * _Nullable error) {\n    NSLog(@\"\\nFourier values: %@\", values);\n    NSLog(@\"Fourier mean-value: %f\", mean);\n  }];\n\n  // Stop updates\n  [fftCalculator stopUpdates];\n}\n```\n\n## Copyright\nMIT\n\n## Author\nHans Knöchel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Fios-coremotion-fft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansemannn%2Fios-coremotion-fft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Fios-coremotion-fft/lists"}