bar_positions

pyrost.bin.bar_positions(double x0, double x1, double b_dx, double rd)

Generate a coordinate array of randomized barcode’s bar positions.

Parameters
  • x0 (float) – Barcode’s lower bound along the x axis [um].

  • x1 (float) – Barcode’s upper bound along the x axis [um].

  • b_dx (float) – Average bar’s size [um].

  • rd (float) – Random deviation of barcode’s bar positions (0.0 - 1.0).

Returns

bx_arr – Array of barcode’s bar coordinates.

Return type

numpy.ndarray