[][src]Function hilbert::point_list::make_points_f64

pub fn make_points_f64<I>(
    points: &[I],
    starting_id: usize,
    range_option: Option<FloatDataRange>,
    bits_allocated: Option<usize>,
    scale: f64
) -> (Vec<Point>, usize) where
    &'a I: IntoIterator<Item = &'a f64>, 

Take unnormalized f64 data, normalize it, and create Point objects (which hold unsigned integer 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.
  • scale - Multiply all coordinates by this before rounding to integers.
  • 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.)