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)
Copyright (C) 2006-2025 rncbc aka Rui Nuno Capela. All rights reserved.
Powered by Drupal
We use cookies on this site to enhance your user experience By clicking the Accept button, you agree to us doing so.
Recent comments
2 hours 38 min ago
6 hours 35 min ago
22 hours 13 min ago
23 hours 24 min ago
1 day 22 hours ago
1 day 23 hours ago
1 day 23 hours ago
2 days 20 min ago
2 days 25 min ago
2 days 1 hour ago