projects
/
talweg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[talweg.git]
/
pkg
/
R
/
F_Neighbors.R
diff --git
a/pkg/R/F_Neighbors.R
b/pkg/R/F_Neighbors.R
index
17fdd58
..
eb0dd79
100644
(file)
--- a/
pkg/R/F_Neighbors.R
+++ b/
pkg/R/F_Neighbors.R
@@
-140,7
+140,7
@@
NeighborsForecaster = R6::R6Class("NeighborsForecaster",
}
return ( data$getSerie(tdays[1])[predict_from:horizon] )
}
}
return ( data$getSerie(tdays[1])[predict_from:horizon] )
}
- max_neighbs = 1
0
#TODO: 10 or 12 or... ?
+ max_neighbs = 1
2
#TODO: 10 or 12 or... ?
if (length(tdays) > max_neighbs)
{
distances2 <- .computeDistsEndo(data, today, tdays, predict_from)
if (length(tdays) > max_neighbs)
{
distances2 <- .computeDistsEndo(data, today, tdays, predict_from)