{
  "_id": "6acd73f7a14063b82c3abbb1",
  "Package": "ocp",
  "Type": "Package",
  "Title": "Bayesian Online Changepoint Detection",
  "Version": "0.1.1",
  "Author": "Andrea Pagotto",
  "Maintainer": "Andrea Pagotto <ajpagotto@gmail.com>",
  "Description": "Implements the Bayesian online changepoint detection\nmethod by Adams and MacKay (2007) <arXiv:0710.3742> for\nunivariate or multivariate data. Gaussian and Poisson\nprobability models are implemented. Provides post-processing\nfunctions with alternative ways to extract changepoints.",
  "Encoding": "UTF-8",
  "License": "GPL-3",
  "LazyData": "true",
  "RoxygenNote": "6.1.0.9000",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-12 23:14:50 UTC",
    "User": "root"
  },
  "Repository": "https://cranhaven.r-universe.dev",
  "Date/Publication": "2026-10-12 12:02:00 UTC",
  "RemoteUrl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "RemoteRef": "package/ocp",
  "RemoteSha": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
  "RemoteSubdir": "ocp",
  "_user": "cranhaven",
  "_type": "src",
  "_file": "ocp_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/a6d5e7cb6ce5f4bed72d28fcd2da3533ca1f4f6fb792cfe387f5a83c81531831",
  "_filesize": 2028977,
  "_sha256": "a6d5e7cb6ce5f4bed72d28fcd2da3533ca1f4f6fb792cfe387f5a83c81531831",
  "_expires": "2027-01-20T23:57:37.000Z",
  "_created": "2026-10-12T23:14:50.000Z",
  "_published": "2026-10-12T23:57:43.138Z",
  "_buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320840335",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115049244425,
      "time": 162,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11778867577"
    },
    {
      "job": 115049244272,
      "time": 142,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11778384356"
    },
    {
      "job": 115049244249,
      "time": 136,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11779764818"
    },
    {
      "job": 115049244369,
      "time": 126,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11779824881"
    },
    {
      "job": 115048391768,
      "time": 174,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11778687104"
    },
    {
      "job": 115049244254,
      "time": 77,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11778509011"
    },
    {
      "job": 115049244395,
      "time": 167,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11778654074"
    },
    {
      "job": 115049244449,
      "time": 140,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11779077544"
    },
    {
      "job": 115049244507,
      "time": 122,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11779158367"
    }
  ],
  "_upstream": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_commit": {
    "id": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
    "author": "GitHub Action <action@github.com>",
    "committer": "GitHub Action <action@github.com>",
    "message": "Add ocp to CRANhaven, because archived on 2026-10-12 12:02:00 +0000\n",
    "time": 1791806520
  },
  "_maintainer": {
    "name": "Andrea Pagotto",
    "email": "ajpagotto@gmail.com",
    "login": "anjapago",
    "description": "",
    "uuid": 23108751
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4.0",
      "role": "Depends"
    },
    {
      "package": "grid",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "cranhaven",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "archived",
    "packages",
    "r-universe"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "henrikbengtsson",
      "count": 183,
      "uuid": 1616850
    }
  ],
  "_userbio": {
    "uuid": 161993010,
    "type": "organization",
    "name": "cranhaven",
    "followers": 3,
    "description": "CRANhaven - Repository for Recently Archived CRAN Packages"
  },
  "_downloads": {
    "count": 439,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ocp"
  },
  "_devurl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_searchresults": 29,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/ocp.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/anjapago/ocp",
  "_realowner": "anjapago",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2018-12-27"
    },
    {
      "version": "0.1.1",
      "date": "2019-04-21"
    }
  ],
  "_exports": [
    "const_hazard",
    "initOCPD",
    "negbinpdf",
    "onlineCPD",
    "studentpdf"
  ],
  "_datasets": [
    {
      "name": "gamesdata",
      "title": "This is data to be included in the package",
      "object": "eurogames2016",
      "class": [
        "data.frame"
      ],
      "fields": [
        "data",
        "trueCPs",
        "Start of Game",
        "goal",
        "caution",
        "Half Time Begins",
        "Play Resumes",
        "substitution",
        "penalty-kick",
        "End of Game",
        "expulsion"
      ],
      "rows": 16,
      "table": true,
      "tojson": true
    },
    {
      "name": "gamesdatacounts",
      "title": "This is data to be included in the package",
      "object": "eurogames2016counts",
      "class": [
        "data.frame"
      ],
      "fields": [
        "data",
        "trueCPs"
      ],
      "rows": 16,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ocp-package",
      "title": "Bayesian Online Changepoint Detection for Multivariate Data",
      "topics": [
        "ocp-package"
      ]
    },
    {
      "page": "const_hazard",
      "title": "Constant hazard function",
      "topics": [
        "const_hazard"
      ]
    },
    {
      "page": "findCPprobs",
      "title": "Find Set of Changepoints with Highest probability",
      "topics": [
        "findCPprobs"
      ]
    },
    {
      "page": "gamesdata",
      "title": "This is data to be included in the package",
      "topics": [
        "gamesdata"
      ]
    },
    {
      "page": "gamesdatacounts",
      "title": "This is data to be included in the package",
      "topics": [
        "gamesdatacounts"
      ]
    },
    {
      "page": "gaussian_init",
      "title": "Initialize vectors for gaussian probability functions",
      "topics": [
        "gaussian_init"
      ]
    },
    {
      "page": "gaussian_update",
      "title": "Update the gaussian parameters",
      "topics": [
        "gaussian_update"
      ]
    },
    {
      "page": "gaussianProb",
      "title": "Compute predictive probabilities based on Gaussian",
      "topics": [
        "gaussianProb"
      ]
    },
    {
      "page": "initOCPD",
      "title": "Initialize ocpd object",
      "topics": [
        "initOCPD"
      ]
    },
    {
      "page": "negbinpdf",
      "title": "Calculate Negative-binomial on vector of parameters",
      "topics": [
        "negbinpdf"
      ]
    },
    {
      "page": "onlineCPD",
      "title": "Bayesian Online Changepoint Detection",
      "topics": [
        "onlineCPD"
      ]
    },
    {
      "page": "plot.ocp",
      "title": "Plot Object",
      "topics": [
        "plot.ocp"
      ]
    },
    {
      "page": "poisson_init",
      "title": "Initialize vectors for poisson probability functions",
      "topics": [
        "poisson_init"
      ]
    },
    {
      "page": "poisson_update",
      "title": "Update the poisson parameters",
      "topics": [
        "poisson_update"
      ]
    },
    {
      "page": "poissonProb",
      "title": "Compute predictive probabilities based on Poisson",
      "topics": [
        "poissonProb"
      ]
    },
    {
      "page": "print.ocp",
      "title": "Print Object",
      "topics": [
        "print.ocp"
      ]
    },
    {
      "page": "str.ocp",
      "title": "Object Structure",
      "topics": [
        "str.ocp"
      ]
    },
    {
      "page": "studentpdf",
      "title": "Calculate Student PDF on vector of parameters",
      "topics": [
        "studentpdf"
      ]
    },
    {
      "page": "summary.ocp",
      "title": "Object Summary",
      "topics": [
        "summary.ocp"
      ]
    }
  ],
  "_readme": "https://github.com/cranhaven/cranhaven.r-universe.dev/raw/package/ocp/ocp/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to ocp Package",
      "author": "Andrea Pagotto",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Running Online Bayesian Changepoint Detection",
        "Generate Univariate Gaussian Data",
        "Run Basic Online Changepoint Detection",
        "Main Outputs",
        "Additional Outputs",
        "Online Changepoint Detection Function Options",
        "Settings affecting speed: getR, truncRlim, optionalOutputs",
        "Settings affecting truncation: truncRlim, maxRlength, minRlength",
        "Settings affecting probability model: probModel, init_params",
        "Gaussian Univariate",
        "Gaussian Multivariate",
        "Poisson Univariate",
        "Gaussian and Poisson Multivariate",
        "Missing Data Options"
      ],
      "created": "2026-10-12 12:02:00",
      "modified": "2026-10-12 12:02:00",
      "commits": 1
    }
  ],
  "_score": 3.8603380065709936,
  "_indexed": false,
  "_nocasepkg": "ocp",
  "_universes": [
    "cranhaven"
  ],
  "_indexurl": "https://anjapago.r-universe.dev/ocp",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-12T23:18:45.000Z",
      "distro": "resolute",
      "commit": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
      "fileid": "https://r2.ropensci.org/25294a34647ee4b346c104fd135d286f32f1d54dd4e80d6ff489afd0f5c2c9f3",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320840335"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-12T23:18:34.000Z",
      "distro": "resolute",
      "commit": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
      "fileid": "https://r2.ropensci.org/83e511c6dba4ecc95df685f52c988516fac6cfb833a69ac021fa39313c91f09e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320840335"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-12T23:56:34.000Z",
      "commit": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
      "fileid": "https://r2.ropensci.org/0a604cc221c4df824c9a8c37b8e461508bd587a1f3ca114685a7442f66702da6",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320840335"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-12T23:56:32.000Z",
      "commit": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
      "fileid": "https://r2.ropensci.org/090e6a3f1c8b73c7e57785cabb592aecd2aeff0add4b6315670392aedc0540d4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320840335"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-10-12T23:18:24.000Z",
      "commit": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
      "fileid": "https://r2.ropensci.org/019c40c103295e56b7ea823a50a583ab253265f00ee1a36d35153dee144214d8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320840335"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-12T23:18:21.000Z",
      "commit": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
      "fileid": "https://r2.ropensci.org/0d89b3ebddbfff9b2f1898367a13e6649573c58521ff878fba0f3f4c1b974ea9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320840335"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-12T23:18:13.000Z",
      "commit": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
      "fileid": "https://r2.ropensci.org/419ba33d55d7399e9edfd3ee663b1c25f723a6c0105118c1a56975667f93c745",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320840335"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-12T23:18:04.000Z",
      "commit": "08efeca01a6b9e54f70e6bcf563038d36bc11aa3",
      "fileid": "https://r2.ropensci.org/15f79689d9818025c3d9798647f0783ce6171c34072116f7f28d53d3d9df3782",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/38320840335"
    }
  ]
}