{"id":20380361,"url":"https://github.com/gagniuc/mix-two-signals-in-java","last_synced_at":"2025-07-20T09:33:51.411Z","repository":{"id":151549696,"uuid":"466286200","full_name":"Gagniuc/Mix-two-signals-in-Java","owner":"Gagniuc","description":"This is an implementation designed in Java. This implementation is able to mix two signals/vectors (A and B) in arbitrary proportions. This source code uses a novel mathematical model published in the journal Chaos. The model is called Spectral Forecast. ","archived":false,"fork":false,"pushed_at":"2022-03-16T20:44:12.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T22:25:09.140Z","etag":null,"topics":["algorithm","algorithms","implementation","java","java-8","mix","model","numerical-methods","signal","spectral-forecast","vector","vectors","waveform"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Gagniuc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":"Gagniuc"}},"created_at":"2022-03-04T22:20:55.000Z","updated_at":"2023-02-11T04:43:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"28d0b24f-88cd-4b8d-ba30-5fe15ea835b2","html_url":"https://github.com/Gagniuc/Mix-two-signals-in-Java","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Gagniuc/Mix-two-signals-in-Java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gagniuc%2FMix-two-signals-in-Java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gagniuc%2FMix-two-signals-in-Java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gagniuc%2FMix-two-signals-in-Java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gagniuc%2FMix-two-signals-in-Java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gagniuc","download_url":"https://codeload.github.com/Gagniuc/Mix-two-signals-in-Java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gagniuc%2FMix-two-signals-in-Java/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266100968,"owners_count":23876691,"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":["algorithm","algorithms","implementation","java","java-8","mix","model","numerical-methods","signal","spectral-forecast","vector","vectors","waveform"],"created_at":"2024-11-15T02:07:02.128Z","updated_at":"2025-07-20T09:33:51.310Z","avatar_url":"https://github.com/Gagniuc.png","language":"Java","funding_links":["https://github.com/sponsors/Gagniuc"],"categories":[],"sub_categories":[],"readme":"# Mix two signals in Java\n\nThis is an implementation designed in Java that is able to blend two signals in arbitrary proportions. This source code uses a novel mathematical model published in the journal [Chaos](https://aip.scitation.org/doi/10.1063/1.5120818). The model is called Spectral Forecast. The \u003ci\u003eMix-two-signals\u003c/i\u003e implementation is a demo that is able to mix two signals (\u003ci\u003eA\u003c/i\u003e and \u003ci\u003eB\u003c/i\u003e) in arbitrary proportions. Different cases can be seen, with two different waveform signals that are combined depending on a value \u003ci\u003ed\u003c/i\u003e, called a distance. The value of \u003ci\u003ed\u003c/i\u003e can be arbitrary chosen between zero and a value Max(\u003ci\u003ed\u003c/i\u003e), which is defined as the maximum value found above the two vectors that represent these signals. In this specific case \u003ci\u003ed\u003c/i\u003e = 33. The output is the \u003ci\u003eM\u003c/i\u003e signal calculated from the two signals \u003ci\u003eA\u003c/i\u003e and \u003ci\u003eB\u003c/i\u003e, such as:\n\n\u003cb\u003eM\u003c/b\u003e = \u003cb\u003e15.37,35.12,51.12,57.17,47.89,43.08,60.35,67.91,63.72,48.03,33.99\u003c/b\u003e\n\nThe Spectral Forecast equation adapted to signals can be observed below:\n\n![screenshot](https://github.com/Gagniuc/Waveform-mixing-with-Spectral-Forecast-in-JS/blob/main/img/spectral%20forecast%20signals.png?raw=true)\n\nWhat can you expect from the code above? The effect of the above source code in the case of longer signals can be seen in a [graphical form](https://gagniuc.github.io/Waveform-mixing-with-Spectral-Forecast-in-JS/) below:\n\n![screenshot](https://github.com/Gagniuc/Waveform-mixing-with-Spectral-Forecast-in-JS/blob/main/img/sf(0).gif?raw=true)\n\n![screenshot](https://github.com/Gagniuc/Waveform-mixing-with-Spectral-Forecast-in-JS/blob/main/img/sf(2).gif?raw=true)\n\n![screenshot](https://github.com/Gagniuc/Waveform-mixing-with-Spectral-Forecast-in-JS/blob/main/img/sf(3).gif?raw=true)\n\n# References\n\n- \u003ci\u003ePaul A. Gagniuc et al. Spectral forecast: A general purpose prediction model as an alternative to classical neural networks. Chaos 30, 033119 (2020).\u003c/i\u003e\n\n- \u003ci\u003ePaul A. Gagniuc. Algorithms in Bioinformatics: Theory and Implementation. John Wiley \u0026 Sons, Hoboken, NJ, USA, 2021, ISBN: 9781119697961.\u003c/i\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagniuc%2Fmix-two-signals-in-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgagniuc%2Fmix-two-signals-in-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagniuc%2Fmix-two-signals-in-java/lists"}