Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. np.array([np.array([run_single_regression(inputs) for x in xrange(iterations)])]).transpose()
  2.  
  3. def Monte_Carlo_regressions(filename, iterations, do_plot = False):
  4. inputs = data_assignment_regression(filename)
  5. total_pow, total_energy = np.array([np.array([run_single_regression(inputs) for x in xrange(iterations)])]).transpose()
  6. if do_plot:
  7. plot(total_pow, 'Total Power Capacity (GW)')
  8. plot(total_energy, 'Total Energy Storage Capacity (TWh)')
  9. return total_pow.mean(0), total_pow.std(0), total_energy.mean(0), total_energy.std(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement