Further thoughts...
To differentiate Compress from Qtr Normalize, I would use "Compression Ratio" and "Target level" as the user inputs.
Compression could the a list or values of: 1:1, 2:1, 3:1, etc up to 10:1. I don't see a need to go higher the 10:1
Note: The formula does need the Pre-check, if the user enters 1:1 and a new Target_value of 64 of:
difference = max_value - target_value.
if difference > 0 then compress = max_value / target_level.
eg: If the user has a data input range of 1-127 and chooses 1:1 compression, and a new target_level of say: 64.
Then the new compressed_values can go negative.
The above Pre_check will add a 'small' amount of compression to span/scale the data over the new velocity range of 1-64
The previous attached compare_normalize.txt has the code I used.
Happy to contribute.
Dave M (down under NZ)
Further thoughts...
To differentiate Compress from Qtr Normalize, I would use "Compression Ratio" and "Target level" as the user inputs.
Compression could the a list or values of: 1:1, 2:1, 3:1, etc up to 10:1. I don't see a need to go higher the 10:1
Note: The formula does need the Pre-check, if the user enters 1:1 and a new Target_value of 64 of:
difference = max_value - target_value.
if difference > 0 then compress = max_value / target_level.
eg: If the user has a data input range of 1-127 and chooses 1:1 compression, and a new target_level of say: 64.
Then the new compressed_values can go negative.
The above Pre_check will add a 'small' amount of compression to span/scale the data over the new velocity range of 1-64
The previous attached compare_normalize.txt has the code I used.
Happy to contribute.
Dave M (down under NZ)