Function common::utils::linspace

source ·
pub fn linspace(
    a: Fixed,
    b: Fixed,
    n: usize,
    endpoints: IntervalEndpoints
) -> Vec<Fixed> 
Expand description

Evenly distribute N points inside an interval one of the following ways:

  • none endpoint included: o - - - - - x - - - - - x - - - - - x - - - - - o
  • left endpoint included: x - - - - - - - x - - - - - - - x - - - - - - - o
  • right endpoint included: o - - - - - - - x - - - - - - - x - - - - - - - x
  • both endpoints included: x - - - - - - - - - - - x - - - - - - - - - - - x