Previous topic

nmrglue.process.pipe_proc.lp

Next topic

nmrglue.process.pipe_proc.lp2d

This Page

nmrglue.process.pipe_proc.lpc

nmrglue.process.pipe_proc.lpc(dic, data, pred='default', x1='default', xn='default', ord=8, mode='f', append='after', bad_roots='auto', mirror=None, fix_mode='on', method='tls')

Linear Prediction

Parameters are slightly different than NMRPipe.

Parameters:

  • dic Dictionary of NMRPipe parameters.

  • data array of spectral data.

  • pred Number of points to predict, “default” chooses the vector size

    for forward prediction, 1 for backward prediction

  • x1 First point in 1D vector to use to extract LP filter.

  • xn Last point in 1D vector to use to extract LP filter.

  • ord Prediction order (Number of LP coefficients)

  • mode Mode to generate LP filter (‘f’-forward,’b’-backward,

    ‘fb’-forward-backward)

  • append Where to append predicted data (‘before’ or ‘after’)

  • bad_roots Type of roots which are bad and should be stabilized,

    either those with ‘incr’ or ‘decr’ signals, set to None for no root stabilizing. Default of ‘auto’ set root fixing based on LP mode. (mode==’f’ or ‘fb’ -> ‘incr’, mode==’b’ -> ‘decr’)

  • mirror ‘90-180’,‘0-0’ or None for one-point shifted mirror image,

    extract mirror image, and No mirror image

Additional Parameters (Not included in NMRPipe):

  • fix_mode Method used to stabilize bad roots, “on” to move the roots

    onto the unit circle, “reflect” to reflect bad roots across the unit circle.

  • method Method to use to calculate the LP filter, choose from

    ‘svd’,’qr’,’choleskey’ or ‘tls’.