This function returns the power and average sample number (ASN) of the specified design for the prototype case which is testing H0: mu = mu0 in a one-sample design.
theta represents the standardized effect (mu - mu0)/sigma and power and ASN is calculated for maximum sample size nMax.
For other designs than the one-sample test of a mean the standardized effect needs to be adjusted accordingly.