collapse_summing_amplitudes: Collapse summing amplitudes

collapse_summing_amplitudesR Documentation

Collapse summing amplitudes

Description

Takes a dataframe of spectral components (locations x, amplitudes y), rounds x, and then combines spectral components with the same location.

Usage

collapse_summing_amplitudes(x, digits, modulo = NA_real_, coherent = FALSE)

Arguments

x

Input dataframe.

digits

Number of digits to which x should be rounded.

modulo

Optional modulo value for the rounding of x.

coherent

Whether the amplitudes from different spectral components should be combined assuming coherent summation, where the amplitudes simply add together (default is FALSE). Otherwise incoherent summation is used, where the amplitudes are squared, added, then square rooted.

Value

A dataframe.


pmcharrison/hrep documentation built on Feb. 18, 2024, 2:33 a.m.