def _ar_invtransparams(params):
 tmp = params.copy()
 for j in range((len(params) - 1), 0, (-1)):
  a = params[j]
  for kiter in range(j):
   tmp[kiter] = ((params[kiter] + (a * params[((j - kiter) - 1)])) / (1 - (a ** 2)))
  params[:j] = tmp[:j]
 invarcoefs = (- np.log(((1 - params) / (1 + params))))
 return invarcoefs

def _ar_invtransparams ( params ) : tmp = params . copy ( ) for j in range ( ( len ( params ) - 1 ) , 0 , ( - 1 ) ) : a = params [ j ] for kiter in range ( j ) : tmp [ kiter ] = ( ( params [ kiter ] + ( a * params [ ( ( j - kiter ) - 1 ) ] ) ) / ( 1 - ( a ** 2 ) ) ) params [ : j ] = tmp [ : j ] invarcoefs = ( - np . log ( ( ( 1 - params ) / ( 1 + params ) ) ) ) return invarcoefs
inverse of the jones reparameterization parameters params : array the transformed ar coefficients .