Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 1 401: | Rivi 1 401: | ||
mwDate = new Date( memo.obsesA[o].compareDate.getTime() ); | mwDate = new Date( memo.obsesA[o].compareDate.getTime() ); | ||
y = mwDate.getFullYear(); | |||
w = mwDate.getWeek(); | |||
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.getFullYear(); | //y = memo.obsesA[o].compareDate.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 422: | Rivi 1 424: | ||
} | } | ||
console.log( memo ); | //console.log( memo ); | ||
// calculate standard deviation | // calculate standard deviation | ||


