Package: samurais 0.1.0

Florian Lecocq

samurais: Statistical Models for the Unsupervised Segmentation of Time-Series ('SaMUraiS')

Provides a variety of original and flexible user-friendly statistical latent variable models and unsupervised learning algorithms to segment and represent time-series data (univariate or multivariate), and more generally, longitudinal data, which include regime changes. 'samurais' is built upon the following packages, each of them is an autonomous time-series segmentation approach: Regression with Hidden Logistic Process ('RHLP'), Hidden Markov Model Regression ('HMMR'), Multivariate 'RHLP' ('MRHLP'), Multivariate 'HMMR' ('MHMMR'), Piece-Wise regression ('PWR'). For the advantages/differences of each of them, the user is referred to our mentioned paper references. These models are originally introduced and written in 'Matlab' by Faicel Chamroukhi <https://github.com/fchamroukhi?&tab=repositories&q=time-series&type=public&language=matlab>.

Authors:Faicel Chamroukhi [aut], Florian Lecocq [aut, trl, cre], Marius Bartcus [aut, trl]

samurais_0.1.0.tar.gz
samurais_0.1.0.zip(r-4.5)samurais_0.1.0.zip(r-4.4)samurais_0.1.0.zip(r-4.3)
samurais_0.1.0.tgz(r-4.4-x86_64)samurais_0.1.0.tgz(r-4.4-arm64)samurais_0.1.0.tgz(r-4.3-x86_64)samurais_0.1.0.tgz(r-4.3-arm64)
samurais_0.1.0.tar.gz(r-4.5-noble)samurais_0.1.0.tar.gz(r-4.4-noble)
samurais_0.1.0.tgz(r-4.4-emscripten)samurais_0.1.0.tgz(r-4.3-emscripten)
samurais.pdf |samurais.html
samurais/json (API)
NEWS

# Install 'samurais' in R:
install.packages('samurais', repos = c('https://fchamroukhi.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/fchamroukhi/samurais/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • multivrealdataset - Time series representing the three acceleration components recorded over time with body mounted accelerometers during the activity of a given person.
  • multivtoydataset - A simulated non-stationary multidimensional time series with regime changes.
  • univrealdataset - Time series representing the electrical power consumption during a railway switch operation
  • univtoydataset - A simulated non-stationary time series with regime changes.

On CRAN:

artificial-intelligencechange-point-detectiondata-sciencedynamic-programmingem-algorithmhidden-markov-modelshidden-process-regressionhuman-activity-recognitionlatent-variable-modelsmodel-selectionmultivariate-timeseriesnewton-raphsonpiecewise-regressionstatistical-inferencestatistical-learningtime-series-analysistime-series-clustering

9 exports 12 stars 1.64 score 3 dependencies 28 scripts 114 downloads

Last updated 5 years agofrom:093a16b0b5. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 11 2024
R-4.5-win-x86_64NOTESep 11 2024
R-4.5-linux-x86_64NOTESep 11 2024
R-4.4-win-x86_64NOTESep 11 2024
R-4.4-mac-x86_64NOTESep 11 2024
R-4.4-mac-aarch64NOTESep 11 2024
R-4.3-win-x86_64NOTESep 11 2024
R-4.3-mac-x86_64NOTESep 11 2024
R-4.3-mac-aarch64NOTESep 11 2024

Exports:emHMMRemMHMMRemMRHLPemRHLPfitPWRFisherselectHMMRselectMHMMRselectMRHLPselectRHLP

Dependencies:MASSRcppRcppArmadillo

A-quick-tour-of-HMMR

Rendered fromA-quick-tour-of-HMMR.Rmdusingknitr::rmarkdownon Sep 11 2024.

Last update: 2019-08-07
Started: 2019-07-10

A-quick-tour-of-MHMMR

Rendered fromA-quick-tour-of-MHMMR.Rmdusingknitr::rmarkdownon Sep 11 2024.

Last update: 2019-08-07
Started: 2019-07-10

A-quick-tour-of-MRHLP

Rendered fromA-quick-tour-of-MRHLP.Rmdusingknitr::rmarkdownon Sep 11 2024.

Last update: 2019-08-07
Started: 2019-07-10

A-quick-tour-of-PWR

Rendered fromA-quick-tour-of-PWR.Rmdusingknitr::rmarkdownon Sep 11 2024.

Last update: 2019-08-07
Started: 2019-07-10

A-quick-tour-of-RHLP

Rendered fromA-quick-tour-of-RHLP.Rmdusingknitr::rmarkdownon Sep 11 2024.

Last update: 2019-08-07
Started: 2019-07-10

Model-selection-HMMR

Rendered fromModel-selection-HMMR.Rmdusingknitr::rmarkdownon Sep 11 2024.

Last update: 2019-07-11
Started: 2019-07-10

Model-selection-MHMMR

Rendered fromModel-selection-MHMMR.Rmdusingknitr::rmarkdownon Sep 11 2024.

Last update: 2019-08-07
Started: 2019-07-10

Model-selection-MRHLP

Rendered fromModel-selection-MRHLP.Rmdusingknitr::rmarkdownon Sep 11 2024.

Last update: 2019-08-07
Started: 2019-07-10

Model-selection-RHLP

Rendered fromModel-selection-RHLP.Rmdusingknitr::rmarkdownon Sep 11 2024.

Last update: 2019-07-11
Started: 2019-07-10

Readme and manuals

Help Manual

Help pageTopics
SaMUraiS: StAtistical Models for the UnsupeRvised segmentAtIon of time-Seriessamurais-package samurais
emHMMR implemens the EM (Baum-Welch) algorithm to fit a HMMR model.emHMMR
emMHMMR implemens the EM (Baum-Welch) algorithm to fit a MHMMR model.emMHMMR
emMRHLP implemens the EM algorithm to fit a MRHLP model.emMRHLP
emRHLP implements the EM algorithm to fit a RHLP model.emRHLP
fitPWRFisher implements an optimized dynamic programming algorithm to fit a PWR model.fitPWRFisher
hmmProcess calculates the probability distribution of a random process following a Markov chainhmmProcess
A Reference Class which represents multivariate data.MData MData-class
mkStochastic ensures that it is a stochastic vector, matrix or array.mkStochastic
A Reference Class which represents a fitted HMMR model.ModelHMMR ModelHMMR-class
A Reference Class which represents a fitted MHMMR model.ModelMHMMR ModelMHMMR-class
A Reference Class which represents a fitted MRHLP model.ModelMRHLP ModelMRHLP-class
A Reference Class which represents a fitted PWR model.ModelPWR ModelPWR-class
A Reference Class which represents a fitted RHLP model.ModelRHLP ModelRHLP-class
Time series representing the three acceleration components recorded over time with body mounted accelerometers during the activity of a given person.multivrealdataset
A simulated non-stationary multidimensional time series with regime changes.multivtoydataset
A Reference Class which contains parameters of a HMMR model.ParamHMMR ParamHMMR-class
A Reference Class which contains parameters of a MHMMR model.ParamMHMMR ParamMHMMR-class
A Reference Class which contains the parameters of a MRHLP model.ParamMRHLP ParamMRHLP-class
A Reference Class which contains the parameters of a PWR model.ParamPWR ParamPWR-class
A Reference Class which contains parameters of a RHLP model.ParamRHLP ParamRHLP-class
selectHMMR implements a model selection procedure to select an optimal HMMR model with unknown structure.selectHMMR
selectMHMMR implements a model selection procedure to select an optimal MHMMR model with unknown structure.selectMHMMR
selecMRHLP implements a model selection procedure to select an optimal MRHLP model with unknown structure.selectMRHLP
selecRHLP implements a model selection procedure to select an optimal RHLP model with unknown structure.selectRHLP
A Reference Class which contains statistics of a HMMR model.StatHMMR StatHMMR-class
A Reference Class which contains statistics of a MHMMR model.StatMHMMR StatMHMMR-class
A Reference Class which contains statistics of a MRHLP model.StatMRHLP StatMRHLP-class
A Reference Class which contains statistics of a PWR model.StatPWR StatPWR-class
A Reference Class which contains statistics of a RHLP model.StatRHLP StatRHLP-class
Time series representing the electrical power consumption during a railway switch operationunivrealdataset
A simulated non-stationary time series with regime changes.univtoydataset