fixed calculation of position when sampleIndex is set in WindowBase#Apply method
Merge pull request #2 from webner/development

Fixed calculation of array position when sampleIndex is set in WindowBase#Apply