calculate single window
Merge pull request #8 from jinxcat/master

calculate single window