Function binomial_tree::get_all_t [−][src]
pub fn get_all_t(
maturity: f64,
n_time_periods: usize
) -> impl Iterator<Item = f64> + DoubleEndedIterator + ExactSizeIterator
Returns iterator over every t except the maturity
Examples
let maturity = 5.0; let n_time_periods = 400; let t_iter = binomial_tree::get_all_t(maturity, n_time_periods);