quantizegen - quantize the elements of a function table
quantizegen(table_number, quantum)
Call quantizegen from a script to quantize the elements of a function table.
/* Make a table of 20 random numbers between 0 and 1. */ makegen(1, 20, 20, 0)
/* Snap the values to a grid dividing the space between 0 and 1 into 4 parts. */ quantizegen(1, 0.25)
Now the table contains 5 different values: 0, 0.25, 0.5, 0.75, and 1.
makegen, addgens, multgens, copygen, offsetgen, scalegen, invertgen, reversegen, shiftgen
John Gibson <johgibso at indiana edu>