[][src]Function hilbert::point_list::make_points_i32

pub fn make_points_i32<I>(
    points: &[I],
    starting_id: usize,
    range_option: Option<IntegerDataRange>,
    bits_allocated: Option<usize>
) -> (Vec<Point>, usize) where
    &'a I: IntoIterator<Item = &'a i32>, 

Take unnormalized i32 data, normalize it, and create Point objects (which hold unsigned values).

  • points - The point data to be normalized and optionally scaled.
  • starting_id - The first point created will get this value for id and each one after that will increment by one.
  • range_option - If supplied, range is used in the normalization, otherwise a range is calculated by studying all the input points.
  • bits_allocated - If supplied, compress the values to this number of bits, otherwise use the minimum number of bits required to faithfully represent the full range of data.
  • return - A tuple holding a Vec of Points whose coordinate values have been normalized and optionally scaled, and the number of bits used to represent each dimension. (The number of bots used must be fed to the Hilbert transformation.)