Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 1 403: | Rivi 1 403: | ||
mwDate.setDate( mwDate.getDate() - mwDate.getDay() + 3 ); | mwDate.setDate( mwDate.getDate() - mwDate.getDay() + 3 ); | ||
memo.obsesA[o].mwDate = mwDate; | memo.obsesA[o].mwDate = mwDate; | ||
y = mwDate.getFullYear(); | //y = mwDate.getFullYear(); | ||
y = memo.obsesA[o].compareDate.getTime().getFullYear(); | |||
w = mwDate.getWeek(); | w = mwDate.getWeek(); | ||
v = memo.obsesA[o].value + memo.distF*Math.random() - memo.distF*Math.random(); | v = memo.obsesA[o].value + memo.distF*Math.random() - memo.distF*Math.random(); | ||
| Rivi 1 420: | Rivi 1 421: | ||
} | } | ||
} | } | ||
console.log( memo ); | |||
console.log( memo ); | |||
// calculate standard deviation | // calculate standard deviation | ||
devSum = 0; | devSum = 0; | ||


