Sdr.simple

You're seeing just the function simple, go back to Sdr module for more information.
Link to this function

simple(min, max, lc, w, v)

View Source

Linear encoder.

Examples

      iex(1)> Sdr.simple(0, 100, 1, 21, 72)
      #MapSet<[72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92]>
      iex(1)> Sdr.simple(0, 100, 1, 21, 73)
      #MapSet<[73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93]>

Use MapSet.size/1 to get the length of the MapSet. Use MapSet.to_list/1 to convert it to a list.