This library is good for installations that you can leave and have the sensors always have a reasonable range without needing to calibrate every so often manually
AdaptiveMapping<QueueSize> mapName(DataLifeTime);
mapName.map(value, mapToMin, mapToMax);
The QueueSize defaults to 11, which is more than enough for most cases, so you can leave it empty. The DataLifeTime is the time (in milliseconds) it should hold the values before they expire. Change this depending on your use case, a small project might only need a couple of seconds or minutes, but an installation might need it to be in the hours.
Call the map function on the object, passing it the value and the min and max you would like to map the range too.
see sample.ino example for a full implementation.
if you want to force a minimum or a maximum (for example, you want the lowest possible value always to be 0) you can do that by using the read function, for example
mapName.read(0);
This will make it so that it processes 0 and makes it the minimum because it is the smallest number it read.