Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created October 25, 2018 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/fc92c298650f776bd3d67193390bbaff to your computer and use it in GitHub Desktop.
Save NMZivkovic/fc92c298650f776bd3d67193390bbaff to your computer and use it in GitHub Desktop.
def _compute_all_possible_outcomes(self, n_steps_frac_change,
n_steps_frac_high, n_steps_frac_low):
frac_change_range = np.linspace(-0.1, 0.1, n_steps_frac_change)
frac_high_range = np.linspace(0, 0.1, n_steps_frac_high)
frac_low_range = np.linspace(0, 0.1, n_steps_frac_low)
self._possible_outcomes = np.array(list(itertools.product(
frac_change_range, frac_high_range, frac_low_range)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment