{"id":15965192,"url":"https://github.com/bwplotka/pwave","last_synced_at":"2025-04-04T13:26:12.624Z","repository":{"id":79051110,"uuid":"45402782","full_name":"bwplotka/pwave","owner":"bwplotka","description":"Simple \u0026 smart header-only library for signal generation.","archived":false,"fork":false,"pushed_at":"2015-11-03T13:50:13.000Z","size":180,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T23:16:06.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bwplotka.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}},"created_at":"2015-11-02T15:23:35.000Z","updated_at":"2016-01-06T11:22:01.000Z","dependencies_parsed_at":"2023-03-08T02:36:17.024Z","dependency_job_id":null,"html_url":"https://github.com/bwplotka/pwave","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwplotka%2Fpwave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwplotka%2Fpwave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwplotka%2Fpwave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwplotka%2Fpwave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwplotka","download_url":"https://codeload.github.com/bwplotka/pwave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247183891,"owners_count":20897668,"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","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":[],"created_at":"2024-10-07T17:40:21.373Z","updated_at":"2025-04-04T13:26:12.604Z","avatar_url":"https://github.com/bwplotka.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# P-Wave (pwave)\n\n![P-Wave](https://github.com/Bplotka/pwave/blob/master/doc/pwave.png)\n\nSimple \u0026 smart header-only library for sequential signal generation.\n\nUseful for testing complicated algorithms like Moving Average calculations, Change Point Detections.\n\nUsed in https://github.com/mesosphere/serenity\n\n## Features\n\n* Generated samples based on custom math model (any f(x) like linear, sinus etc)\n* Optional noise modifiers (deterministic or random)\n* Custom modifiers (spikes, drops etc)\n* Print as CSV\n\n\n## Usage\n\n1. Include `pwave` in your `c++11` code.\n2. Use robust `SignalScenario` class for creating custom, complex scenarios:\n\n```cpp\nSignalScenario signalGen =\n  SignalScenario(NUMBER_OF_ITERATIONS)\n    .use(math::linearFunction)\n    .after(12).add(-24.05)\n    .after(2).use(new SymetricNoiseGenerator(MAX_NOISE))\n    .after(23).use(math::sinFunction);\n```\n\n3. Iterate over generated values:\n\n```cpp\nITERATE_SIGNAL(signalGen) {\n  // Use generated result in your code.\n  double_t result = (*signalGen)();\n  // See result as CSV:\n  (*signalGen).printCSVLine(result);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwplotka%2Fpwave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwplotka%2Fpwave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwplotka%2Fpwave/lists"}