https://tinypic.pl/8kytazhz429v

What formulas do i need to create a graph like that? I know it uses standard deviation, but there are also "seamless polynomials", the end fit the beginning. Anyone can help me? I just need the names of the formulas or whatever it would be.