Skip to content

✨ Scaling according to contribution #33

@s-weigand

Description

@s-weigand

Is your feature request related to a problem? Please describe.

Products of two functions one in time and the other in the spectral domain, with widely differing magnitudes are hard to compare in plots.
Thus they need to be scaled according to their relative contributions to the fit.

Describe the solution you'd like

  • Compute the absolute maximum along the time axis (c_max)
  • Compute the absolute maximum along the spectral axis (e_max).
  • Compute the product per contribution (scale_vector=c_max*e_max).
  • Find the component with the maximum value in scale_vector and normalize this component to 1 on the 2 plots (c, e).
  • For every other component scale it with the square root of its contribution (e.g. for the 2nd element find 2nd max in scale_vector and scale with sqrt of that value)

Additional context

Requested by @ism200

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions