bfast2 / bfast2/strucchangeRcpp

Error in RSS.table[as.character(opt[1]), i] : subscript out of bounds when using C++

オープン
#13 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
R
スター
6
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

I noticed a difference when running the R code and the C++ code path: in the latter, I sometimes get the error:
```
Error in RSS.table[as.character(opt[1]), i] : subscript out of bounds
```
This comes from breakpoints(), extract.breaks(), which implies that the RSS.table is not the same size as it would be in the R implementation (as I have never run into that problem in the R code path). I'll try and get an example time series for that.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

C++ パスを実行する最小限の時系列例を作成し、breakpoints() から extract.breaks() までトレースして、RSS.table の次元を R パスと比較します。RSS.table[as.character(opt[1]), i] のインデックス指定を調べます。C++ パスがサブスクリプトエラーなしに完了し、サイズが一貫した RSS.table データを生成すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, r
領域
data
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。