Add new comment

Permalink

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)

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike> <pre> <p> <br>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.
CAPTCHA
Enter the characters shown in the image.