bfast2 / bfast2/strucchangeRcpp
Error in RSS.table[as.character(opt[1]), i] : subscript out of bounds when using C++
- Lingua principale
- R
- Stelle
- 6
- Fork
- 5
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Crea un esempio minimo di serie temporale che eserciti il percorso C++, quindi segui breakpoints() fino a extract.breaks() e confronta le dimensioni di RSS.table con il percorso R. Esamina l’indicizzazione in RSS.table[as.character(opt[1]), i]; il lavoro è completato quando il percorso C++ termina senza l’errore di indice e produce dati RSS.table di dimensioni coerenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, r
- Ambito
- data
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100