Skip to content

Instantly share code, notes, and snippets.

@atamazian
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save atamazian/bab83a0f4237b30b86cb to your computer and use it in GitHub Desktop.

Select an option

Save atamazian/bab83a0f4237b30b86cb to your computer and use it in GitHub Desktop.
function Wq = kingman(ti, ts)
rho = mean(ts)/mean(ti);
cva = stdev(ti)/mean(ti);
cvs = stdev(ts)/mean(ts);
Wq = (rho/(1 - rho))*((cva^2 + cvs^2)/2)*mean(ti);
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment