Merge pull request #8 from ranyu/master

sampling network
modify sampling