I would like to define a trigonometric function of the form $f(x)=\alpha \cos^2(P\pi x)$
where I can define $\alpha$ as an amplitude as the function's range, and $P$ as a period related the standard deviation of $x$ values.
Is this possible? I haven't found much help when searching for a link between a cosine function's standard deviation and period. I would be grateful for any help.