apodize_trapezoid: Apply trapezoid apodization function

Description Usage Arguments Value

View source: R/processing.R

Description

Apodizes signal data according to a trapezoid function that ramps up from 0 to tm1 and ramps down from tm2 until the end of the acquisition time, where tm1 and tm2 are relative values from 0 to 1.

Usage

1
2
apodize_trapezoid(direct.time, signal, tm1 = 0, tm2 = 0.5,
  output.weights = FALSE)

Arguments

direct.time

A vector of time points of the signal data.

signal

A vector of complex signal data.

tm1

The leftmost edge of the trapezoid as a fraction of acquisition time.

tm2

The rightmost edge of the trapezoid as a fraction of acquisition time.

output.weights

Set to TRUE to output the apodization function rather than the weighted signal.

Value

Corrected signal vector (or vector of weights if output.weights is TRUE).


ssokolen/rnmrfit documentation built on Nov. 23, 2018, 12:25 a.m.