Skip to content

Conversation

@ikbuibui
Copy link
Contributor

Adds a copysign function to PMAcc math.

Adds a symlog axis to the binning plugin (a Log-Lin-Log axis).

This axis has a symmetric linear region around zero which has a user configurable threshold (which is mapped to the range -1 to 1) and is logarithmic outside, with continuous transitions (but not necessarily smooth) at the threshold boundaries.
In the logarithmic range, the values are mapped with magnitude 1 + ln(abs(val)/linThreshold) with the same sign as val.

NOTE The bins are defined as equidistant in the symlog space. I am not sure if this is the best way to define bins with this axis, maybe independently setting the number of bins in the linear and log regions is better or maybe something else.
I am currently open to suggestions.

Added tests for the symlog axis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant