beanumber / tidychangepoint

Changepoint detection with a tidy interface
https://beanumber.github.io/tidychangepoint/
Other
0 stars 1 forks source link

methods that segmenters must implement #92

Closed beanumber closed 2 months ago

beanumber commented 2 months ago
library(tidyverse)
library(tidychangepoint)
intersect(
  methods(class = "mod_default") |> attr("info") |> pull("generic"),
  methods(class = "cpt") |> attr("info") |> pull("generic")
)
#> [1] "as.ts"        "changepoints" "glance"       "logLik"       "model_name"  
#> [6] "nobs"

Created on 2024-04-24 with reprex v2.1.0

library(tidyverse)
library(tidychangepoint)
setdiff(
  methods(class = "cpt") |> attr("info") |> filter(!isS4) |> pull("generic"),
  methods(class = "mod_default") |> attr("info") |> pull("generic")
)
#> [1] "fitness"    "model_args" "params"

Created on 2024-04-24 with reprex v2.1.0