{"id":19606995,"url":"https://github.com/deepcharles/circruptures","last_synced_at":"2025-08-23T15:06:48.843Z","repository":{"id":261486486,"uuid":"883938395","full_name":"deepcharles/circruptures","owner":"deepcharles","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-19T13:04:58.000Z","size":1164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T14:22:30.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/deepcharles.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":"2024-11-05T21:00:06.000Z","updated_at":"2025-06-19T13:05:03.000Z","dependencies_parsed_at":"2024-11-12T05:46:56.327Z","dependency_job_id":null,"html_url":"https://github.com/deepcharles/circruptures","commit_stats":null,"previous_names":["deepcharles/circruptures"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deepcharles/circruptures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepcharles%2Fcircruptures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepcharles%2Fcircruptures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepcharles%2Fcircruptures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepcharles%2Fcircruptures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepcharles","download_url":"https://codeload.github.com/deepcharles/circruptures/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepcharles%2Fcircruptures/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268362996,"owners_count":24238544,"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":[],"created_at":"2024-11-11T10:08:15.351Z","updated_at":"2025-08-02T09:35:14.164Z","avatar_url":"https://github.com/deepcharles.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Change point detection for circular time series\n\n## Install\n\n```bash\npython -m pip install .\n```\n\n\n## Example\n\n```Python\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nfrom circruptures import (\n    get_bkps,\n    estimate_var,\n    distance_between_bkps,\n    convert_bkps_to_distrib,\n    get_approx,\n)\n\n\n# Assume data are in a variable named `signal`\n\n# compute change points\npenalty_factor = 14_000\nn_samples = signal.shape[0]\nvariance = estimate_var(signal, n_segments=50)\nbkps = get_bkps(\n    signal,\n    penalty=penalty_factor * np.log(n_samples) * variance,\n    return_approx=False,\n    n_states=20,\n)\n\n# Plot signal and its approximation\napprox = get_approx(signal, bkps)\nfor dim in range(2):\n    fig, ax = plt.subplots(figsize=(10, 3))\n    ax.plot(signal[:, dim])\n    ax.plot(approx[:, dim])\n    ax.set_xmargin(0)\n    _ = ax.set_ylim(-np.pi, np.pi)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepcharles%2Fcircruptures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepcharles%2Fcircruptures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepcharles%2Fcircruptures/lists"}